Sha256: cc4f63d6956a0a531cd531f4982cc69166cbcf81ce4df54efb646bac76057089
Contents?: true
Size: 850 Bytes
Versions: 33
Compression:
Stored size: 850 Bytes
Contents
params = { title: 'Admin', url: -> { Rails.application.routes.url_helpers.admin_base_path }, type: LinkDecisionHelper::NAVBAR_LOGGED_IN, display: ->(current_user) { RailsBase.config.admin.view_admin_page?(current_user) } } LinkDecisionHelper.new(**params).assign! params = { title: 'Admin History', url: -> { Rails.application.routes.url_helpers.admin_history_path }, display: -> (current_user) { RailsBase.config.admin.enable_history_by_user?(current_user) } , type: LinkDecisionHelper::NAVBAR_LOGGED_IN, } LinkDecisionHelper.new(**params).assign! params = { title: 'Admin Config', url: -> { Rails.application.routes.url_helpers.admin_config_path }, display: -> (current_user) { RailsBase.config.admin.config_page?(current_user) } , type: LinkDecisionHelper::NAVBAR_LOGGED_IN, } LinkDecisionHelper.new(**params).assign!
Version data entries
33 entries across 33 versions & 1 rubygems