class DashboardController
Public Instance Methods
Source
# File app/controllers/dashboard_controller.rb, line 11 def index @notices_count = (policy_scope(ImportantNotice).count if policy(ImportantNotice).index?) end
# File app/controllers/dashboard_controller.rb, line 11 def index @notices_count = (policy_scope(ImportantNotice).count if policy(ImportantNotice).index?) end