instance method
_normalize_args
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v7.0.10 PrivateSignature
_normalize_args(action = nil, options = {}, &blk)
Normalize arguments by catching blocks and setting them on :update.
Parameters
-
actionopt = nil -
optionsopt = {} -
blkblock
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 82
def _normalize_args(action = nil, options = {}, &blk)
options = super
options[:update] = blk if block_given?
options
end
Defined in actionpack/lib/action_controller/metal/rendering.rb line 82
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rendering