HOT-FIX: Issue with changes with the language file name (#466)

* HOT-FIX: Issue with changes with the language file name

* Rubocop!
This commit is contained in:
Jesus Federico
2019-04-16 17:08:17 -04:00
committed by GitHub
parent 5ff41d0590
commit c8a799bce8
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ module SessionsHelper
end
def parse_user_domain(hostname)
return hostname.split('.').first unless Rails.configuration.url_host
return hostname.split('.').first if Rails.configuration.url_host.empty?
Rails.configuration.url_host.split(',').each do |url_host|
if hostname.include?(url_host)
return hostname.chomp(url_host).chomp('.')