lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.2.0 vs lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.2.1
- old
+ new
@@ -31,13 +31,13 @@
on get do
write Configuration.instance
end
on put do
- updated_at = keeps( Configuration )[ 'updated_at' ]
- config = Configuration.optimistic_get!( updated_at,
+ req_filter( Configuration )
+ config = Configuration.optimistic_get!( req_filter.updated_at,
Configuration.instance.id )
- config.attributes = params
+ config.attributes = req_filter.params
config.modified_by = current_user if config.dirty?
config.save
write config
end
end