Class: WorkActivityNotificationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/work_activity_notifications_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#new_session_path

Instance Method Details

#indexObject

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

#showObject

GET /activity_notifications/1 or /activity_notifications/1.json



11
# File 'app/controllers/work_activity_notifications_controller.rb', line 11

def show; end