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.1.rc3 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.10.rc2 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.1.rc2 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.10.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.1.rc1 lib/action_controller/metal/implicit_render.rb
activejob-lock-0.0.1 rails/actionpack/lib/action_controller/metal/implicit_render.rb
actionpack-4.0.13 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.9 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.9.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.0.13.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0.rc3 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0.rc2 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0.rc1 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.7.1 lib/action_controller/metal/implicit_render.rb
actionpack-4.0.11.1 lib/action_controller/metal/implicit_render.rb
actionpack-4.1.8 lib/action_controller/metal/implicit_render.rb
actionpack-4.0.12 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0.beta4 lib/action_controller/metal/implicit_render.rb
actionpack-4.2.0.beta3 lib/action_controller/metal/implicit_render.rb