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
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_time ⇒ Object
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 |