diff options
Diffstat (limited to 'app/models/participant.rb')
-rw-r--r-- | app/models/participant.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/participant.rb b/app/models/participant.rb index 14b3bb6..205bd2c 100644 --- a/app/models/participant.rb +++ b/app/models/participant.rb @@ -42,7 +42,7 @@ class Participant < ActiveRecord::Base accepts_nested_attributes_for :communities, :reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } } accepts_nested_attributes_for :subparticipant, :allow_destroy => true - scope :order_id_asc, -> { order("id ASC") } + scope :order_id_asc, -> { order("participants.id ASC") } scope :without_anonymous, -> { where(:anonymous => false) } scope :anonymous, -> { where(:anonymous => true) } scope :for_message, lambda { |message| |