Commit d987f54d627e733c97bf85b80bbe8edd5da67dbe

Authored by Victor Costa
1 parent f96d1d76
Exists in master

Fix profile extension

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/ext/profile.rb
1 require_dependency 'profile' 1 require_dependency 'profile'
2 2
3 Profile.class_eval do 3 Profile.class_eval do
4 - has_many :notifications, :source => 'articles', :class_name => 'NotificationPlugin::NotificationContent', :order => 'start_date'  
5 - has_many :lobby_notes, :source => 'articles', :class_name => 'NotificationPlugin::LobbyNoteContent', :order => 'start_date' 4 + has_many :notifications, -> { order(:start_date) }, :source => 'articles', :class_name => 'NotificationPlugin::NotificationContent'
  5 + has_many :lobby_notes, -> { order(:start_date) }, :source => 'articles', :class_name => 'NotificationPlugin::LobbyNoteContent'
6 end 6 end