aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/dashboards_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/dashboards_controller.rb')
-rw-r--r--app/controllers/dashboards_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/dashboards_controller.rb b/app/controllers/dashboards_controller.rb
index 1c7876c58..c90d0c296 100644
--- a/app/controllers/dashboards_controller.rb
+++ b/app/controllers/dashboards_controller.rb
@@ -3,8 +3,9 @@
# this controller will use a custom partial like
# custom/dashboards/_dashboard.html.slim for Custom::Dashboard
#
-class DashboardsController < InheritedResources::Base
+class DashboardsController < ChouetteController
respond_to :html, only: [:show]
+ defaults :resource_class => Dashboard
def show
@dashboard = Dashboard.create self