notification-methods/models/notification_method.rb
# This method saves us from having to add a whole bunch of if/else blocks
# to handle the three different states a notification method can have
This method saves us from having to add a whole bunch of if/else blocks
to handle the three different states a notification method can have
This method saves us from having to add a whole bunch of if / else blocks to handle the three different states a notification method can have
def status
        return :not_confirmed unless confirmed?
        return :disabled unless enabled?
        :enabled
    end
def status return :not_confirmed unless confirmed? return :disabled unless enabled? :enabled end
This method saves us from having to add a whole bunch of if/else blocks
to handle the three different states a notification method can have
This method saves us from having to add a whole bunch of if / else blocks to handle the three different states a notification method can have