X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6a5749c55c7a93a25054dc6dd76e1c4b88e37b2c..2a121cfc41264254bdeee81fc2b4756ab4886c3a:/app/models/diary_entry.rb?ds=sidebyside diff --git a/app/models/diary_entry.rb b/app/models/diary_entry.rb index 856816077..dd1f9882a 100644 --- a/app/models/diary_entry.rb +++ b/app/models/diary_entry.rb @@ -2,7 +2,7 @@ class DiaryEntry < ActiveRecord::Base belongs_to :user has_many :diary_comments, :include => :user, :conditions => "users.visible = 1", - :order => "id" + :order => "diary_comments.id" validates_presence_of :title, :body validates_numericality_of :latitude, :allow_nil => true