lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.2.1 vs lib/ixtlan/configuration/cuba.rb in ixtlan-configuration-0.2.2

- old
+ new

@@ -26,14 +26,14 @@ module Ixtlan module Configuration class Cuba < ::CubaAPI define do - on get do + on_guard :get do write Configuration.instance end - on put do + on_guard :put do req_filter( Configuration ) config = Configuration.optimistic_get!( req_filter.updated_at, Configuration.instance.id ) config.attributes = req_filter.params config.modified_by = current_user if config.dirty?