Class: ActionNativePush::Device
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ActionNativePush::Device
- Includes:
- ActiveSupport::Rescuable
- Defined in:
- app/models/action_native_push/device.rb
Instance Method Summary collapse
Instance Method Details
#push(notification) ⇒ Object
13 14 15 16 17 18 |
# File 'app/models/action_native_push/device.rb', line 13 def push(notification) notification.token = token ActionNativePush.service_for(platform, notification).push(notification) rescue => error rescue_with_handler(error) || raise end |