Module: ActionController::ImplicitRender
- Included in:
- MimeResponds
- Defined in:
- actionpack/lib/action_controller/metal/implicit_render.rb
Instance Method Summary collapse
- #default_render(*args) ⇒ Object
- #method_for_action(action_name) ⇒ Object
- #send_action(method, *args) ⇒ Object
Instance Method Details
#default_render(*args) ⇒ Object
9 10 11 |
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 9 def default_render(*args) render(*args) end |
#method_for_action(action_name) ⇒ Object
13 14 15 16 17 |
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 13 def method_for_action(action_name) super || if template_exists?(action_name.to_s, _prefixes) "default_render" end end |
#send_action(method, *args) ⇒ Object
3 4 5 6 7 |
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 3 def send_action(method, *args) ret = super default_render unless response_body ret end |