instance method
config
Ruby on Rails edge
Since edgeSignature
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