mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adding shop_trial_expiry method to enterpise model
This commit is contained in:
@@ -329,6 +329,10 @@ class Enterprise < ActiveRecord::Base
|
||||
!confirmed? || pending_reconfirmation?
|
||||
end
|
||||
|
||||
def shop_trial_expiry
|
||||
shop_trial_start_date.andand + Enterprise::SHOP_TRIAL_LENGTH.days
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def devise_mailer
|
||||
|
||||
Reference in New Issue
Block a user