diff --git a/lib/ext/profile.rb b/lib/ext/profile.rb index e883cdb..58b650d 100644 --- a/lib/ext/profile.rb +++ b/lib/ext/profile.rb @@ -1,5 +1,5 @@ require_dependency 'profile' Profile.class_eval do - has_many :questions, :source => 'articles', :class_name => 'PairwisePlugin::PairwiseContent', :order => 'start_date' -end \ No newline at end of file + has_many :questions, -> { order(:start_date) }, :source => 'articles', :class_name => 'PairwisePlugin::PairwiseContent' +end -- libgit2 0.21.2