vendor/plugins/assert_request/lib/assert_request.rb
def assert_method(*args)
      safe_assertion do
        MethodRules.new.allow(*args).validate(request.method)
      end
    end
# Checks that the current request method matches one of the given 
# arguments. Ignores all other aspects of the request (in this way it 
# differs from assert_request). This method behaves 
# the same way as RequestRules#method. See its description for more 
# detail. 
Checks that the current request method matches one of the given
arguments. Ignores all other aspects of the request (in this way it
differs from assert_request). This method behaves
the same way as RequestRules#method. See its description for more
detail.
Checks that the current request method matches one of the given arguments . Ignores all other aspects of the request ( in this way it differs from assert_request ) . This method behaves the same way as RequestRules#method . See its description for more detail .
def assert_method(*args)
      safe_assertion do
        MethodRules.new.allow(*args).validate(request.method)
      end
    end
def assert_method ( * args ) safe_assertion do MethodRules . new . allow ( * args ) . validate ( request . method ) end end
Checks that the current request method matches one of the given
arguments.
Checks that the current request method matches one of the given arguments .
args