Class: Loco::NotificationCenterController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

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

#sync_timeObject



13
14
15
# File 'app/controllers/loco/notification_center_controller.rb', line 13

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