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)