lib/pragma/operation/authorization.rb in pragma-operation-1.6.1 vs lib/pragma/operation/authorization.rb in pragma-operation-1.6.2

- old
+ new

@@ -68,14 +68,9 @@ end # rubocop:enable Metrics/LineLength if Object.const_defined?('Pragma::Contract::Base') && authorizable.is_a?(Pragma::Contract::Base) authorizable.deserialize(params) - else - params.each_pair do |name, value| - next unless policy.resource.respond_to?("#{name}=") - policy.resource.send("#{name}=", value) - end end policy.send("#{self.class.operation_name}?").tap do |result| after_authorization result end