Sha256: 11eefe51b7e0491519fc9fd23a0ec055fda377e4866705dc9a193923dc95b126

Contents?: true

Size: 374 Bytes

Versions: 126

Compression:

Stored size: 374 Bytes

Contents

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

Version data entries

126 entries across 122 versions & 10 rubygems

Version Path
actionpack-4.2.11.3 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.11.2 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.11.1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.11 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.10 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.10.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.9 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.9.rc2 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.9.rc1 lib/action_controller/metal/implicit_render.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-4.2.8/lib/action_controller/metal/implicit_render.rb
actionpack-4.2.8 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.8.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.7.1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.7 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.16 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.16.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.7.rc1 lib/action_controller/metal/implicit_render.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb
actionpack-4.1.15 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.6 lib/action_controller/metal/implicit_render.rb