detect staging env

This commit is contained in:
Christophe Robillard 2021-03-24 15:05:24 +01:00
parent db7603efb7
commit 83cf0fa903
4 changed files with 6 additions and 8 deletions

View file

@ -110,7 +110,7 @@ module ApplicationHelper
end
def staging?
ENV['APP_NAME'] == 'tps_dev'
Rails.application.config.ds_env == 'staging'
end
def contact_link(title, options = {})