Class: Eventifier::NotificationsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
# File 'app/controllers/eventifier/notifications_controller.rb', line 2

def index
  @notifications = notifications
end

#touchObject



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