Skip to content

Commit

Permalink
Fix comment typo in SubscriptionApi
Browse files Browse the repository at this point in the history
  • Loading branch information
simukappu committed Nov 11, 2018
1 parent 1503062 commit d9d9b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/activity_notification/apis/subscription_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9d9b5d

Please sign in to comment.