instance method
with_defaults
Ruby on Rails 8.0.4
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 78
def with_defaults(defaults)
self.class.new controller, @env, @defaults.merge(defaults)
end
Defined in actionpack/lib/action_controller/renderer.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer