Method: ActionController::Renderer#with_defaults

Defined in:
actionpack/lib/action_controller/renderer.rb

#with_defaults(defaults) ⇒ Object

Creates a new renderer using the same controller, but with the given defaults merged on top of the previous defaults.



78
79
80
# File 'actionpack/lib/action_controller/renderer.rb', line 78

def with_defaults(defaults)
  self.class.new controller, @env, @defaults.merge(defaults)
end