aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/metal/implicit_render.rb
blob: 282dcf66b3f8baa6c815c052002309d0579e6079 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                         
                                                      





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

    def default_render
      render
    end

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