instance method
with_defaults
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
with_defaults(defaults)
Creates a new renderer using the same controller, but with the given defaults merged on top of the previous defaults.
Parameters
-
defaultsreq
Source
# File actionpack/lib/action_controller/renderer.rb, line 75
def with_defaults(defaults)
self.class.new controller, @env, @defaults.merge(defaults)
end
Defined in actionpack/lib/action_controller/renderer.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer