Class: OverviewController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- OverviewController
- Defined in:
- app/controllers/overview_controller.rb
Overview
The overview controller.
Instance Method Summary (collapse)
-
- (Object) index
Show the overview (dashboard) view.
Instance Method Details
- (Object) index
Show the overview (dashboard) view.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/overview_controller.rb', line 8 def index if current_customer.role == 'admin' @tags = Tag.all @places = Place.all @top10_tags = Tag.top_10_scanned else @tags = Tag.my(current_customer) @places = Place.my(current_customer) @top10_tags = Tag.my_top_10_scanned(current_customer) end end |