aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/metal/implicit_render.rb
blob: 3ec0c4c6a4b5020035db3f9bcdd7d78d1e4878c5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                       







                                           

       

                             

       

                                                            

       
   
module ActionController
  module ImplicitRender
    def send_action(method, *args)
      if respond_to?(method, true)
        ret = super
        default_render unless response_body
        ret
      else
        default_render
      end
    end

    def default_render(*args)
      render(*args)
    end

    def action_method?(action_name)
      super || template_exists?(action_name.to_s, _prefixes)
    end
  end
end