Skip to content

Instantly share code, notes, and snippets.

View CodingFu's full-sized avatar
🌴
Bali

Seva Rybakov CodingFu

🌴
Bali
View GitHub Profile
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