lib/activity_notification/apis/subscription_api.rb
# Validates subscribing_to_email cannot be true when subscribing is false.
Validates subscribing_to_email cannot be true when subscribing is false.
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
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_email cannot be true when subscribing is false.
Validates subscribing_to_email cannot be true when subscribing is false .