We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 078053d commit 423a33bCopy full SHA for 423a33b
docs/delivery_methods/fcm.md
@@ -132,7 +132,7 @@ Firebase Cloud Messaging Notifications may fail delivery if the user has removed
132
```ruby
133
class CommentNotification
134
deliver_by :fcm do |config|
135
- config.invalid_token = ->(device_token) { device_token.destroy }
+ config.invalid_token = ->(device_token) { NotificationToken.find_by(token: device_token).destroy }
136
end
137
138
```
0 commit comments