Exception: DeclarativeAuthorization::Test::Helpers::InvalidParamsBlockArity

Inherits:
StandardError
  • Object
show all
Defined in:
lib/declarative_authorization/test/helpers.rb

Instance Method Summary collapse

Constructor Details

#initialize(params_block_name, params_block_arity, max_arity) ⇒ InvalidParamsBlockArity

Returns a new instance of InvalidParamsBlockArity.



10
11
12
13
# File 'lib/declarative_authorization/test/helpers.rb', line 10

def initialize(params_block_name, params_block_arity, max_arity)
  message = "Params block '#{params_block_name}' has arity of #{params_block_arity}. Max params block arity is #{max_arity}."
  super(message)
end