diff --git a/lib/ext/profile.rb b/lib/ext/profile.rb index 59dcb98..4274a51 100644 --- a/lib/ext/profile.rb +++ b/lib/ext/profile.rb @@ -1,6 +1,6 @@ require_dependency 'profile' Profile.class_eval do - has_many :notifications, :source => 'articles', :class_name => 'NotificationPlugin::NotificationContent', :order => 'start_date' - has_many :lobby_notes, :source => 'articles', :class_name => 'NotificationPlugin::LobbyNoteContent', :order => 'start_date' + has_many :notifications, -> { order(:start_date) }, :source => 'articles', :class_name => 'NotificationPlugin::NotificationContent' + has_many :lobby_notes, -> { order(:start_date) }, :source => 'articles', :class_name => 'NotificationPlugin::LobbyNoteContent' end -- libgit2 0.21.2