Module: ActionController::Renderers

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

Defined Under Namespace

Modules: All, ClassMethods

Constant Summary

RENDERERS =
{}

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, extended, included

Class Method Details

.add(key, &block) ⇒ Object



51
52
53
54
55
# File 'actionpack/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 'actionpack/lib/action_controller/metal/renderers.rb', line 46

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