Module: AdminBarHelper
- Included in:
- Www::AdminBarController
- Defined in:
- app/helpers/admin_bar_helper.rb
Overview
Renders the WWW admin bar based on the apex-domain admin presence cookie set
by CRM (see AdminPresence). The bar appears anywhere this helper is mixed
in, without requiring the user to log into WWW separately — they just need
an active CRM session as an @warmlyyours.com admin.
Instance Method Summary collapse
-
#admin_bar_payload ⇒ Hash?
Decoded admin presence payload.
-
#admin_bar_visible? ⇒ Boolean
Whether the admin bar should be shown.
Instance Method Details
#admin_bar_payload ⇒ Hash?
Returns decoded admin presence payload.
14 15 16 |
# File 'app/helpers/admin_bar_helper.rb', line 14 def @admin_bar_payload ||= AdminPresence.decode() end |
#admin_bar_visible? ⇒ Boolean
Returns whether the admin bar should be shown.
9 10 11 |
# File 'app/helpers/admin_bar_helper.rb', line 9 def .present? end |