Module: ActionController::Renderers::ClassMethods

Defined in:
actionpack/lib/action_controller/metal/renderers.rb

Instance Method Summary collapse

Instance Method Details

#use_renderers(*args) ⇒ Object Also known as: use_renderer



19
20
21
22
23
24
25
# File 'actionpack/lib/action_controller/metal/renderers.rb', line 19

def use_renderers(*args)
  new = _renderers.dup
  args.each do |key|
    new[key] = RENDERERS[key]
  end
  self._renderers = new.freeze
end