]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_comment.rb
Added more non-ascii chars to validation (matching list of chars in other models)
[rails.git] / app / models / diary_comment.rb
index 8a99c7b2ce461fdc80ebed2987149f4c2e8e93b1..63eae3f213ee621f7016459271e46af036661a77 100644 (file)
@@ -26,6 +26,8 @@ class DiaryComment < ActiveRecord::Base
   belongs_to :user
   belongs_to :diary_entry
 
+  scope :visible, -> { where(:visible => true) }
+
   validates :body, :presence => true
   validates :diary_entry, :user, :associated => true