Commit b923a811e1e988bbd88d13317e9f2b64a44bc83f

Authored by Tao Huang
1 parent 1be6d7f2
Exists in master

fix: default question order

lib/surveyable/question.rb
... ... @@ -9,7 +9,7 @@ module Surveyable
9 9 validates_presence_of :text
10 10 validates_presence_of :type
11 11  
12   - default_scope order: "position ASC, id ASC"
  12 + default_scope {order("position ASC, id ASC")}
13 13  
14 14 scope :required, -> { where(required:true)}
15 15 def field_type
... ...
lib/surveyable/version.rb
1 1 module Surveyable
2   - VERSION = "0.2.4"
  2 + VERSION = "0.2.5"
3 3 end
... ...