Class: Loco::NotificationCenterController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/loco/notification_center_controller.rb', line 3

def index
  if Loco::Config.silence_logger
    logger.silence{ fetch_notifications }
  else
    fetch_notifications
  end
end

#sync_timeObject



11
12
13
# File 'app/controllers/loco/notification_center_controller.rb', line 11

def sync_time
  render json: {sync_time: Time.current.iso8601(6)}
end