From b1c38edbcd1d872670cbea31ab21486e6c65aaa7 Mon Sep 17 00:00:00 2001 From: Phil Reynolds Date: Tue, 23 Jan 2024 21:47:19 +0000 Subject: [PATCH] Update README.md to show a mixture of methods, lambdas, and values. Co-authored-by: Chris Oliver --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0096f32..a7b0d28 100644 --- a/README.md +++ b/README.md @@ -133,9 +133,9 @@ class CommentNotifier < Noticed::Event config.apns_key = :ios_cert config.key_id = :ios_key_id config.team_id = :ios_team_id - config.bundle_identifier = :ios_bundle_id + config.bundle_identifier = Rails.application.credentials.dig(:ios, :bundle_identifier) config.device_tokens = :ios_device_tokens - config.if = :send_ios_notification? + config.if = ->(notification) { recipient.send_ios_notification? } end def ios_format(apn)