Disambiguate order clause.
This commit is contained in:
parent
6a5749c55c
commit
c771557b38
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue