Commit eb87519872152a16809a393cc970ba25f31ad6e6

Authored by Victor Costa
1 parent 37024235
Exists in master

Fix questions ordering in profile extension

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/ext/profile.rb
1 1 require_dependency 'profile'
2 2  
3 3 Profile.class_eval do
4   - has_many :questions, :source => 'articles', :class_name => 'PairwisePlugin::PairwiseContent', :order => 'start_date'
5   -end
6 4 \ No newline at end of file
  5 + has_many :questions, -> { order(:start_date) }, :source => 'articles', :class_name => 'PairwisePlugin::PairwiseContent'
  6 +end
... ...