Module: ActionController::ImplicitRender

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) default_render



9
10
11
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 9

def default_render
  render
end

- (Object) method_for_action(action_name)



13
14
15
16
17
18
19
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 13

def method_for_action(action_name)
  super || begin
    if template_exists?(action_name.to_s, _prefix)
      "default_render"
    end
  end
end

- (Object) send_action



3
4
5
6
7
# File 'actionpack/lib/action_controller/metal/implicit_render.rb', line 3

def send_action(*)
  ret = super
  default_render unless response_body
  ret
end