Method: ActionController::Renderer.for

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

.for(controller, env = nil, defaults = DEFAULTS) ⇒ Object

Creates a new renderer using the given controller class. See ::new.



64
65
66
# File 'actionpack/lib/action_controller/renderer.rb', line 64

def self.for(controller, env = nil, defaults = DEFAULTS)
  new(controller, env, defaults)
end