Sha256: f17ffab51f6f16ef6a1f42618e719dc4ea2e76e54034653f0544815481299986

Contents?: true

Size: 429 Bytes

Versions: 35

Compression:

Stored size: 429 Bytes

Contents

module Plutonium
  module UI
    module DynaFrame
      class Content < Plutonium::UI::Component::Base
        include Phlex::Rails::Helpers::TurboFrameTag

        def view_template
          if current_turbo_frame.present?
            turbo_frame_tag(current_turbo_frame) do
              render "flash"
              yield
            end
          else
            yield
          end
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
plutonium-0.19.2 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.19.1 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.19.0 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.8 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.7 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.6 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.5 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.4 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.3 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.2 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.1 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.18.0 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.16.5 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.16.4 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.16.3 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.16.1 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.16.0 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.24 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.23 lib/plutonium/ui/dyna_frame/content.rb
plutonium-0.15.22 lib/plutonium/ui/dyna_frame/content.rb