lib/acfs/resource/operational.rb in acfs-1.5.1 vs lib/acfs/resource/operational.rb in acfs-1.6.0

- old
+ new

@@ -9,15 +9,18 @@ # # Should only be used internal. # module Operational extend ActiveSupport::Concern - delegate :operation, to: :'self.class' + def operation(*args, **kwargs, &block) + self.class.operation(*args, **kwargs, &block) + end + module ClassMethods # Invoke CRUD operation. - def operation(action, opts = {}, &block) - Acfs.runner.process ::Acfs::Operation.new self, action, opts, &block + def operation(action, **opts, &block) + Acfs.runner.process ::Acfs::Operation.new(self, action, **opts, &block) end end end end