Sha256: 98bbd4d8ae195c89e895291573bd2ff423865d999aa1a62ce1ec1ea03a8ac0dc

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

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
      render
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
actionpack-3.0.7 lib/action_controller/metal/implicit_render.rb
actionpack-3.0.7.rc2 lib/action_controller/metal/implicit_render.rb
actionpack-3.0.7.rc1 lib/action_controller/metal/implicit_render.rb