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