Sha256: f62d35024bb5c702751fd12e0271e6105974217339191d00e265e376611193af
Contents?: true
Size: 959 Bytes
Versions: 3
Compression:
Stored size: 959 Bytes
Contents
alchemy_module = { engine_name: 'spree', name: 'solidus', navigation: { controller: 'spree/admin/orders', action: 'index', name: 'Store', image: 'alchemy/solidus/alchemy_module_icon.png', data: { turbolinks: false }, sub_navigation: [ { controller: 'spree/admin/orders', action: 'index', name: 'Orders' }, { controller: 'spree/admin/products', action: 'index', name: 'Products' }, { controller: 'spree/admin/promotions', action: 'index', name: 'Promotions' }, { controller: 'spree/admin/stock_items', action: 'index', name: 'Stock' } ] } } if defined?(Spree::Auth::Engine) alchemy_module[:navigation][:sub_navigation].push( { controller: 'spree/admin/users', action: 'index', name: 'Users' } ) end Alchemy::Modules.register_module(alchemy_module)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy-solidus-2.3.2 | config/initializers/alchemy.rb |
alchemy-solidus-2.3.1 | config/initializers/alchemy.rb |
alchemy-solidus-2.3.0 | config/initializers/alchemy.rb |