Class: Loco::NotificationCenterController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Loco::NotificationCenterController
- Defined in:
- app/controllers/loco/notification_center_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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_time ⇒ Object
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 |