Commit 89fde6ecbd05a670b4b2222a4e93daa3472a0d40

Authored by Tao Huang
1 parent 9ea985b1
Exists in master

fix: add sort by id

Showing 1 changed file with 1 additions and 1 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"
  8 + has_many :questions, as: :survey, class_name: 'Surveyable::Question', order: "position ASC, id ASC"
9 9 send :include, InstanceMethods
10 10 end
11 11 end
... ...