lib/hanami/interactor.rb in hanami-utils-1.1.0 vs lib/hanami/interactor.rb in hanami-utils-1.1.1
- old
+ new
@@ -349,30 +349,30 @@
#
# # Method #call is not defined
# end
#
# Signup.new.call # => NoMethodError
- def call(*args, **kwargs)
+ def call(*args)
@__result = ::Hanami::Interactor::Result.new
- _call(*args, **kwargs) { super }
+ _call(*args) { super }
end
private
# @api private
# @since 1.1.0
- def _call(*args, **kwargs)
+ def _call(*args)
catch :fail do
- validate!(*args, **kwargs)
+ validate!(*args)
yield
end
_prepare!
end
# @since 1.1.0
- def validate!(*args, **kwargs)
- fail! unless valid?(*args, **kwargs)
+ def validate!(*args)
+ fail! unless valid?(*args)
end
end
private