File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
lib/action_controller/metal
test/controller/parameters Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,6 @@ class Parameters
122
122
cattr_accessor :always_permitted_parameters
123
123
self . always_permitted_parameters = %w( controller action )
124
124
125
- def self . const_missing ( const_name )
126
- return super unless const_name == :NEVER_UNPERMITTED_PARAMS
127
- ActiveSupport ::Deprecation . warn ( <<-MSG . squish )
128
- `ActionController::Parameters::NEVER_UNPERMITTED_PARAMS` has been deprecated.
129
- Use `ActionController::Parameters.always_permitted_parameters` instead.
130
- MSG
131
-
132
- always_permitted_parameters
133
- end
134
-
135
125
# Returns a new instance of <tt>ActionController::Parameters</tt>.
136
126
# Also, sets the +permitted+ attribute to the default value of
137
127
# <tt>ActionController::Parameters.permit_all_parameters</tt>.
Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ def teardown
12
12
ActionController ::Parameters . always_permitted_parameters = %w( controller action )
13
13
end
14
14
15
- test "shows deprecations warning on NEVER_UNPERMITTED_PARAMS" do
16
- assert_deprecated do
17
- ActionController ::Parameters ::NEVER_UNPERMITTED_PARAMS
18
- end
19
- end
20
-
21
15
test "returns super on missing constant other than NEVER_UNPERMITTED_PARAMS" do
22
16
ActionController ::Parameters . superclass . stub :const_missing , "super" do
23
17
assert_equal "super" , ActionController ::Parameters ::NON_EXISTING_CONSTANT
You can’t perform that action at this time.
0 commit comments