Class: WorkActivityNotificationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- WorkActivityNotificationsController
- Defined in:
- app/controllers/work_activity_notifications_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /activity_notifications or /activity_notifications.json.
-
#show ⇒ Object
GET /activity_notifications/1 or /activity_notifications/1.json.
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
GET /activity_notifications or /activity_notifications.json
6 7 8 |
# File 'app/controllers/work_activity_notifications_controller.rb', line 6 def index @work_activity_notifications = WorkActivityNotification.where(user_id: user.id).order(created_at: :desc) end |
#show ⇒ Object
GET /activity_notifications/1 or /activity_notifications/1.json
11 |
# File 'app/controllers/work_activity_notifications_controller.rb', line 11 def show; end |