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