OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/helpers/enterprise_helper.rb

16 lines
430 B

module EnterpriseHelper
def write_augur_to_gon
gon.augur_url = OpenProject::Configuration.enterprise_trial_creation_host
gon.token_version = OpenProject::Token::VERSION
end
def write_trial_key_to_gon
trial_key = Token::EnterpriseTrialKey.find_by(user_id: User.system.id)
if trial_key
gon.ee_trial_key = {
value: trial_key.value,
created: trial_key.created_at
}
end
end
end