lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.1.1 vs lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.1.2
- old
+ new
@@ -30,10 +30,10 @@
define do
on get do
write Configuration.instance
end
- on post do
+ on put do
updated_at = keeps( Configuration )[ 'updated_at' ]
config = Configuration.optimistic_get!( updated_at,
Configuration.instance.id )
config.attributes = params
config.modified_by = current_user if config.dirty?