mirror of https://github.com/rails/rails
Merge pull request #5674 from avakhov/ac-exception-remove-obsolete-member
Remove obsolete reader from AC::MethodNotAllowed exception class
This commit is contained in:
commit
fde48f75ae
|
@ -14,8 +14,6 @@ module ActionController
|
|||
end
|
||||
|
||||
class MethodNotAllowed < ActionControllerError #:nodoc:
|
||||
attr_reader :allowed_methods
|
||||
|
||||
def initialize(*allowed_methods)
|
||||
super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue