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

Version Path
rails_base-0.82.0 config/initializers/default_logged_in_headers.rb
rails_base-0.81.1 config/initializers/default_logged_in_headers.rb
rails_base-0.81.0 config/initializers/default_logged_in_headers.rb
rails_base-0.80.0 config/initializers/default_logged_in_headers.rb
rails_base-0.75.6 config/initializers/default_logged_in_headers.rb
rails_base-0.75.5 config/initializers/default_logged_in_headers.rb
rails_base-0.75.4 config/initializers/default_logged_in_headers.rb
rails_base-0.75.3 config/initializers/default_logged_in_headers.rb
rails_base-0.75.2 config/initializers/default_logged_in_headers.rb
rails_base-0.75.1 config/initializers/default_logged_in_headers.rb
rails_base-0.75.0 config/initializers/default_logged_in_headers.rb
rails_base-0.74.0 config/initializers/default_logged_in_headers.rb
rails_base-0.73.1 config/initializers/default_logged_in_headers.rb
rails_base-0.73.0 config/initializers/default_logged_in_headers.rb
rails_base-0.72.1 config/initializers/default_logged_in_headers.rb
rails_base-0.72.0 config/initializers/default_logged_in_headers.rb
rails_base-0.71.0 config/initializers/default_logged_in_headers.rb
rails_base-0.70.1.pre config/initializers/default_logged_in_headers.rb
rails_base-0.70.0 config/initializers/default_logged_in_headers.rb
rails_base-0.61.0 config/initializers/default_logged_in_headers.rb