Class: ReportsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ReportsController
- Defined in:
- app/controllers/reports_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#dataset_list ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/reports_controller.rb', line 3 def dataset_list if current_user.super_admin? || current_user.moderator? @works = Work.where(sql_where(params)) else redirect_to "/" end end |