lib/eco/api/policies/policy.rb in eco-helpers-0.8.3 vs lib/eco/api/policies/policy.rb in eco-helpers-0.8.4
- old
+ new
@@ -2,12 +2,12 @@
module API
module Policies
class Policy < Eco::API::UseCases::UseCase
TYPES = [:transform]
- def initialize(name, type: :transform, root:, options: {}, &block)
+ def initialize(name, type: :transform, root:, &block)
raise "Undefine usecase type #{type}. Please, use any of #{TYPES}" unless self.class.valid_type?(type)
- super(name, type: type, root: root, options: options, &block)
+ super(name, type: type, root: root, &block)
end
def root=(value)
raise "Root should be a UsedPolicies object. Given: #{value}" if !value.is_a?(UsedPolicies)
@root = value