Sha256: 74bdfa663225ab5c61fba72686d06c6d112c45550e5e946a22cef1cd977c9273

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Presenter
    module Behavior
      # 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-presenter-1.0.0.rc5 lib/pakyow/presenter/behavior/implicit_rendering.rb
pakyow-presenter-1.0.0.rc4 lib/pakyow/presenter/behavior/implicit_rendering.rb
pakyow-presenter-1.0.0.rc3 lib/pakyow/presenter/behavior/implicit_rendering.rb
pakyow-presenter-1.0.0.rc2 lib/pakyow/presenter/behavior/implicit_rendering.rb
pakyow-presenter-1.0.0.rc1 lib/pakyow/presenter/behavior/implicit_rendering.rb