This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trial_start_date = current_provider.created_at | |
if free_trial_completed?(trial_start_date) | |
current_provider.update(in_free_trial: false) | |
elsif in_sixty_day_trial?(trial_start_date) | |
current_provider.update(in_free_trial: true) | |
elsif in_thirty_day_trial?(trial_start_date) | |
current_provider.update(in_free_trial: true) | |
end |