Commit 1be6d7f2da21c9905dc0f7fef6ad17f8067a185f
1 parent
89fde6ec
Exists in
master
fix: use default scope
Showing
3 changed files
with
4 additions
and
2 deletions
Show diff stats
lib/surveyable/acts_as_survey.rb
... | ... | @@ -5,7 +5,7 @@ module Surveyable |
5 | 5 | end |
6 | 6 | module ClassMethods |
7 | 7 | def acts_as_survey(options = {}) |
8 | - has_many :questions, as: :survey, class_name: 'Surveyable::Question', order: "position ASC, id ASC" | |
8 | + has_many :questions, as: :survey, class_name: 'Surveyable::Question' | |
9 | 9 | send :include, InstanceMethods |
10 | 10 | end |
11 | 11 | end | ... | ... |
lib/surveyable/question.rb
lib/surveyable/version.rb