lib/perus/server/models/script.rb in perus-0.1.15 vs lib/perus/server/models/script.rb in perus-0.1.16
- old
+ new
@@ -1,8 +1,8 @@
module Perus::Server
class Script < Sequel::Model
plugin :validation_helpers
- one_to_many :script_commands, order: 'name asc'
+ one_to_many :script_commands, order: :order
one_to_many :actions
def code_name
name.gsub(' ', '_').camelize
end