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