Skip to content
This repository
tree: 1b4edd173d
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (17 sloc) 0.374 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module ActionController
  module ImplicitRender
    def send_action(method, *args)
      ret = super
      default_render unless performed?
      ret
    end

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

    def method_for_action(action_name)
      super || if template_exists?(action_name.to_s, _prefixes)
        "default_render"
      end
    end
  end
end
Something went wrong with that request. Please try again.