diff --git a/app/controllers/spree/admin/overview_controller_decorator.rb b/app/controllers/spree/admin/overview_controller_decorator.rb index ddaddb5dc3..967cdf450d 100644 --- a/app/controllers/spree/admin/overview_controller_decorator.rb +++ b/app/controllers/spree/admin/overview_controller_decorator.rb @@ -7,9 +7,9 @@ Spree::Admin::OverviewController.class_eval do if spree_current_user.manages_one_enterprise? @enterprise = @enterprises.first - render partial: "single_enterprise_dashboard" + render "single_enterprise_dashboard" else - render partial: "multi_enterprise_dashboard" + render "multi_enterprise_dashboard" end end end diff --git a/app/views/spree/admin/overview/_multi_enterprise_dashboard.html.haml b/app/views/spree/admin/overview/multi_enterprise_dashboard.html.haml similarity index 100% rename from app/views/spree/admin/overview/_multi_enterprise_dashboard.html.haml rename to app/views/spree/admin/overview/multi_enterprise_dashboard.html.haml diff --git a/app/views/spree/admin/overview/_single_enterprise_dashboard.html.haml b/app/views/spree/admin/overview/single_enterprise_dashboard.html.haml similarity index 100% rename from app/views/spree/admin/overview/_single_enterprise_dashboard.html.haml rename to app/views/spree/admin/overview/single_enterprise_dashboard.html.haml diff --git a/spec/controllers/spree/admin/overview_controller_spec.rb b/spec/controllers/spree/admin/overview_controller_spec.rb index 62443c2cfb..bac96afdf1 100644 --- a/spec/controllers/spree/admin/overview_controller_spec.rb +++ b/spec/controllers/spree/admin/overview_controller_spec.rb @@ -14,7 +14,7 @@ describe Spree::Admin::OverviewController do it "renders the single enterprise dashboard" do spree_get :index - response.should render_template partial: "_single_enterprise_dashboard" + response.should render_template "single_enterprise_dashboard" end end @@ -24,7 +24,7 @@ describe Spree::Admin::OverviewController do it "renders the multi enterprise dashboard" do spree_get :index - response.should render_template partial: "_multi_enterprise_dashboard" + response.should render_template "multi_enterprise_dashboard" end end end