Sha256: e10b254193c59bef035e148e9fe7d5610fc656ae19e40405ede974e1a60cb3b8

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  class Application
    module Behavior
      module Presenter
        # Performs a render if a controller is called but doesn't explicitly render.
        #
        module ImplicitRendering
          extend Support::Extension

          apply_extension do
            after :dispatch, :implicit_render do
              connection.app.isolated(:Renderer).render_implicitly(connection)
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-presenter-1.0.6 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.5 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.4 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.3 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.2 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.1 lib/pakyow/application/behavior/presenter/implicit_rendering.rb
pakyow-presenter-1.0.0 lib/pakyow/application/behavior/presenter/implicit_rendering.rb