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.1.1.pre.5 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.1.pre.4 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.1.pre.3 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.1.pre.2 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.1.pre.1 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.1.0 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.112 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.111 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.110 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.109 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.108 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.107 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.106 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.105 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.104 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.103 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.102 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.101 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.100 pg_engine/app/helpers/pg_engine/flash_helper.rb
pg_rails-7.0.8.pre.alpha.99 pg_engine/app/helpers/pg_engine/flash_helper.rb