Module: ActionController::Renderers
- Extended by:
- ActiveSupport::Concern
- 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
+ (Object) add(key, &block)
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. end |
Instance Method Details
- (Object) render_to_body(options)
46 47 48 |
# File 'actionpack/lib/action_controller/metal/renderers.rb', line 46 def render_to_body() () || super end |