Sha256: 2b31b9b19b039a65731d331e06d2ec4ab5795baa6fb0156686032856488ab57d

Contents?: true

Size: 379 Bytes

Versions: 50

Compression:

Stored size: 379 Bytes

Contents

module PgEngine
  module FlashHelper
    def render_turbo_stream_flash_messages
      turbo_stream.prepend 'flash', partial: 'pg_layout/flash'
    end

    def render_turbo_stream_title
      title = [breadcrumbs.last&.name, I18n.t('app_name')].compact.join(' - ')
      turbo_stream.update_all 'title', title
      # rubocop:enable Rails/SkipsModelValidations
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
pg_rails-7.2.3 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.2.2 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.2.1 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.2.0 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.16 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.15 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.14 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.13 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.12 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.11 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.10 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.9 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.8 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.7 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.6 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.5 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.4 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.3 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.2 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.1.pre.6 pg_engine/app/helpers/pg_engine/flash_helper.rb