instance method _normalize_args

Ruby on Rails 6.1.7.10

Since v5.2.8.1 Last seen in v7.0.10 Private — implementation detail, not part of the public API

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

_normalize_args(action = nil, options = {}, &blk)

Normalize arguments by catching blocks and setting them on :update.

Parameters

action opt = nil
options opt = {}
blk block
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 87
      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 87 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Rendering

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close