Module: ActionController::Renderers

Extended by:
ActiveSupport::Concern
Included in:
All
Defined in:
lib/action_controller/metal/renderers.rb

Defined Under Namespace

Modules: All, ClassMethods

Constant Summary collapse

RENDERERS =
{}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add(key, &block) ⇒ Object



51
52
53
54
55
# File 'lib/action_controller/metal/renderers.rb', line 51

def self.add(key, &block)
  define_method("_render_option_#{key}", &block)
  RENDERERS[key] = block
  All._write_render_options
end

Instance Method Details

#render_to_body(options) ⇒ Object



46
47
48
# File 'lib/action_controller/metal/renderers.rb', line 46

def render_to_body(options)
  _handle_render_options(options) || super
end