X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e198ec6252aaacbece6c3d3a6e7957588b619b8a..a3a792e13772282c006556081c65e12e37ad273b:/app/models/diary_entry.rb diff --git a/app/models/diary_entry.rb b/app/models/diary_entry.rb index 8063372da..46d96fec7 100644 --- a/app/models/diary_entry.rb +++ b/app/models/diary_entry.rb @@ -1,7 +1,7 @@ class DiaryEntry < ActiveRecord::Base belongs_to :user has_many :diary_comments, :include => :user, - :conditions => "users.visible = 1", + :conditions => ["users.visible = ?", true], :order => "diary_comments.id" validates_presence_of :title, :body