lib/acfs/stub.rb in acfs-1.7.0 vs lib/acfs/stub.rb in acfs-2.0.0
- old
+ new
@@ -100,10 +100,10 @@
class << self
# Stub a resource with given handler block. An already created handler
# for same resource class will be overridden.
#
- def resource(klass, action, opts = {}, &_block)
+ def resource(klass, action, opts = {}, &)
action = action.to_sym
unless ACTIONS.include? action
raise ArgumentError.new "Unknown action `#{action}`."
end