From: Tom Hughes Date: Sun, 12 Oct 2008 18:42:34 +0000 (+0000) Subject: Disambiguate order clause. X-Git-Tag: live~7678 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c771557b38a2f935ea79d113386c759636f4e31f Disambiguate order clause. --- 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