提交 51b90140 编写于 作者: C Carlos Antonio da Silva

Remove #permitted attr accessor from Parameters

There is no need to expose this accessor since we already have the query
method #permitted? that should handle this purpose.
上级 fa0aebf3
......@@ -65,7 +65,6 @@ def initialize(param) # :nodoc:
# params["key"] # => "value"
class Parameters < ActiveSupport::HashWithIndifferentAccess
cattr_accessor :permit_all_parameters, instance_accessor: false
attr_accessor :permitted # :nodoc:
# Returns a new instance of <tt>ActionController::Parameters</tt>.
# Also, sets the +permitted+ attribute to the default value of
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册