instance method config

Ruby on Rails edge

Since edge

Signature

config()

The view’s config copy is built on first read: most requests never touch it, and the copy would otherwise be allocated per rendering.

Source
# File actionview/lib/action_view/base.rb, line 305
    def config
      @_config ||= if (controller = @_controller) && controller.respond_to?(:config)
        controller.config.inheritable_copy
      else
        ActiveSupport::InheritableOptions.new
      end
    end

Defined in actionview/lib/action_view/base.rb line 305 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Base

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