Sha256: c72f76d265129ac4b7c39d1b690b10484f0f99212a84e9769ba4693a58179cef
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
REPORT_TABS = [:insights, *Spree::ReportGenerationService.reports.keys.collect(&:to_sym)] Spree::Backend::Config.configure do |config| config.menu_items << config.class::MenuItem.new( REPORT_TABS, 'bar-chart', condition: ->{ can?(:display, :insights) }, partial: 'spree/admin/shared/insights_side_menu' ) end Spree::RoleConfiguration.configure do |config| config.assign_permissions :admin, [Spree::PermissionSets::InsightDisplay] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin_insights-2.1.1 | config/initializers/add_to_sidebar.rb |
solidus_admin_insights-2.1.0 | config/initializers/add_to_sidebar.rb |