Class: Eventifier::NotificationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Eventifier::NotificationsController
- Defined in:
- app/controllers/eventifier/notifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 |
# File 'app/controllers/eventifier/notifications_controller.rb', line 2 def index @notifications = notifications end |
#touch ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/eventifier/notifications_controller.rb', line 6 def touch current_user.update_attribute :notifications_last_read_at, Time.zone.now render :json => {'status' => 'OK'} end |