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