From d9d9b5de459572e4026f82d410649a2936c18592 Mon Sep 17 00:00:00 2001 From: simukappu Date: Sun, 11 Nov 2018 13:01:15 +0900 Subject: [PATCH] Fix comment typo in SubscriptionApi --- lib/activity_notification/apis/subscription_api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/activity_notification/apis/subscription_api.rb b/lib/activity_notification/apis/subscription_api.rb index 45d18115..63e2ae8e 100644 --- a/lib/activity_notification/apis/subscription_api.rb +++ b/lib/activity_notification/apis/subscription_api.rb @@ -188,14 +188,14 @@ def optional_target_names protected - # Validates subscribing_to_email cannot be true when subscribing isfalse. + # Validates subscribing_to_email cannot be true when subscribing is false. def subscribing_to_email_cannot_be_true_when_subscribing_is_false if !subscribing && subscribing_to_email? errors.add(:subscribing_to_email, "cannot be true when subscribing is false") end end - # Validates subscribing_to_optional_target cannot be true when subscribing isfalse. + # Validates subscribing_to_optional_target cannot be true when subscribing is false. def subscribing_to_optional_target_cannot_be_true_when_subscribing_is_false optional_target_names.each do |optional_target_name| if !subscribing && subscribing_to_optional_target?(optional_target_name)