Fix up case statement syntax for ruby 1.9 compatibility
[rails.git] / app / models / diary_entry.rb
index 9146eb800bed9347e3ff5e79007295a269b603f6..318672c03bb84f30952de4f4a96036e1bfeb48da 100644 (file)
@@ -13,6 +13,8 @@ class DiaryEntry < ActiveRecord::Base
                               },
                               :order => "diary_comments.id"
 
+  scope :visible, where(:visible => true)
+
   validates_presence_of :title, :body
   validates_length_of :title, :within => 1..255
   #validates_length_of :language, :within => 2..5, :allow_nil => false