summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2017-03-01 22:30:16 +0100
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2017-03-01 22:30:16 +0100
commitc0c77e5f1939245c5b2327df6a9efb67749a33b1 (patch)
tree6cd5f2fed670cf705a5d531218d6efb1a332a675
parentf346740451f931acbfce34be450b9d0499cabc70 (diff)
downloadecs-c0c77e5f1939245c5b2327df6a9efb67749a33b1.tar.gz
ecs-c0c77e5f1939245c5b2327df6a9efb67749a33b1.zip
Fix order.
-rw-r--r--app/models/participant.rb2
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