diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2017-03-01 22:30:16 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2017-03-01 22:30:16 +0100 |
commit | c0c77e5f1939245c5b2327df6a9efb67749a33b1 (patch) | |
tree | 6cd5f2fed670cf705a5d531218d6efb1a332a675 | |
parent | f346740451f931acbfce34be450b9d0499cabc70 (diff) | |
download | ecs-c0c77e5f1939245c5b2327df6a9efb67749a33b1.tar.gz ecs-c0c77e5f1939245c5b2327df6a9efb67749a33b1.zip |
Fix order.
-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 5fc363c..f2ac5d4 100644 --- a/app/models/participant.rb +++ b/app/models/participant.rb @@ -29,7 +29,7 @@ class Participant < ActiveRecord::Base has_many :identities, :dependent => :destroy has_many :events, :dependent => :destroy has_many :childs, - :order => "id ASC", + -> { order 'id ASC' }, :class_name => "Subparticipant", :foreign_key => "parent_id", :dependent => :destroy |