Skip to content

Commit 4bd6251

Browse files
Remove obsolete AC::Rendering#_normalize_args
The sole purpose of `ActionController::Rendering#_normalize_args` is to store the given block in `options[:update]`. This behavior was added long ago in 6923b39 (as [part of `ActionController::Base#_normalize_options`][part-of]) to support RJS. Rails no longer supports RJS, so this override is no longer necessary. [part-of]: rails@6923b39#diff-febf2f89e7c197d6a9a7077c96031c68b2b7ac4d8ce7ec634de92b164e5f69adR100
1 parent 1df6ad0 commit 4bd6251

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

actionpack/lib/action_controller/metal/rendering.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,6 @@ def _set_vary_header
195195
end
196196
end
197197

198-
# Normalize arguments by catching blocks and setting them on :update.
199-
def _normalize_args(action = nil, options = {}, &blk)
200-
options = super
201-
options[:update] = blk if block_given?
202-
options
203-
end
204-
205198
# Normalize both text and status options.
206199
def _normalize_options(options)
207200
_normalize_text(options)

0 commit comments

Comments
 (0)