Sha256: b979aa911c676dd3627effd12746c658276fe19f45c77caf59b16607b3e28920

Contents?: true

Size: 474 Bytes

Versions: 29

Compression:

Stored size: 474 Bytes

Contents

module PgEngine
  module FlashHelper
    def render_turbo_stream_flash_messages(to: nil)
      if to.present?
        turbo_stream.prepend_all to, partial: 'pg_layout/flash'
      else
        turbo_stream.prepend 'flash', partial: 'pg_layout/flash'
      end
    end

    def render_turbo_stream_title
      title = [breadcrumbs.last&.name, ActsAsTenant.current_tenant, I18n.t('app_name')].compact.join(' - ')
      turbo_stream.update_all 'title', title
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pg_rails-7.6.21.pre.3 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.21.pre.2 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.21.pre.1 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.20 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.19 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.18 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.17 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.16 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.15 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.14 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.13 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.12 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.11 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.10 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.9 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.8 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.7 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.6 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.5 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.6.4 pg_engine/app/helpers/pg_engine/flash_helper.rb