Sha256: 50044b828a160edd909af3495cce3cd6159325b3955dc35a6e22723b7f06a917

Contents?: true

Size: 304 Bytes

Versions: 10

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

Spree::Backend::Config.configure do |config|
  config.locale = 'en'

  config.menu_items << config.class::MenuItem.new(
    [:bolt],
    'bolt',
    condition: -> { can?(:admin, :bolt) },
    url: :admin_bolt_path,
    position: 6,
    match_path: %r{/admin/bolt/}
  )
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 config/initializers/menu_items.rb
solidus_bolt-0.7.1 config/initializers/menu_items.rb
solidus_bolt-0.7.0 config/initializers/menu_items.rb
solidus_bolt-0.6.0 config/initializers/menu_items.rb
solidus_bolt-0.5.0 config/initializers/menu_items.rb
solidus_bolt-0.4.0 config/initializers/menu_items.rb
solidus_bolt-0.3.0 config/initializers/menu_items.rb
solidus_bolt-0.2.0 config/initializers/menu_items.rb
solidus_bolt-0.1.0 config/initializers/menu_items.rb
solidus_bolt-0.0.1 config/initializers/menu_items.rb