method
new
v2.1.0 -
Show latest stable
- Class:
ActionController::MethodNotAllowed
new(*allowed_methods)public
No documentation available.
# File actionpack/lib/action_controller/base.rb, line 33
def initialize(*allowed_methods)
super("Only #{allowed_methods.to_sentence} requests are allowed.")
@allowed_methods = allowed_methods
end