From 2bf38b3ea18ae0fe10f38c89864ae6d815121b0d Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Mon, 26 Nov 2018 13:33:05 +0800 Subject: [PATCH] Improve code based on Rubocop recommendations --- app/models/spree/ability_decorator.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/models/spree/ability_decorator.rb b/app/models/spree/ability_decorator.rb index e7ba9df1ef..7056586d46 100644 --- a/app/models/spree/ability_decorator.rb +++ b/app/models/spree/ability_decorator.rb @@ -184,7 +184,9 @@ class AbilityDecorator can [:admin, :index, :guide, :import, :save, :save_data, :validate_data, :reset_absent_products], ProductImport::ProductImporter # Reports page - can [:admin, :index, :customers, :orders_and_distributors, :group_buys, :bulk_coop, :payments, :orders_and_fulfillment, :products_and_inventory, :order_cycle_management, :packing, :enterprise_fee_summary], :report + can [:admin, :index, :customers, :orders_and_distributors, :group_buys, :bulk_coop, :payments, + :orders_and_fulfillment, :products_and_inventory, :order_cycle_management, :packing, + :enterprise_fee_summary], :report can [:admin, :index], :enterprise_fee_summary_report end @@ -258,7 +260,9 @@ class AbilityDecorator end # Reports page - can [:admin, :index, :customers, :group_buys, :bulk_coop, :sales_tax, :payments, :orders_and_distributors, :orders_and_fulfillment, :products_and_inventory, :order_cycle_management, :xero_invoices, :enterprise_fee_summary], :report + can [:admin, :index, :customers, :group_buys, :bulk_coop, :sales_tax, :payments, + :orders_and_distributors, :orders_and_fulfillment, :products_and_inventory, + :order_cycle_management, :xero_invoices, :enterprise_fee_summary], :report can [:admin, :index], :enterprise_fee_summary_report can [:create], Customer