More accessible, still not good environment based settings
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
class SupplierController < Suppliers::ApplicationController
|
||||
def home
|
||||
if Rails.env.development?
|
||||
redirect_to "https://localhost:4202/supplier/#{params[:other]}"
|
||||
else
|
||||
redirect_to "https://supplier.mozo.bar/supplier/#{params[:other]}"
|
||||
end
|
||||
redirect_to "#{Mozo.supplier_url}/#{params[:other]}"
|
||||
end
|
||||
=begin
|
||||
# GET /suppliers/1/active_orders
|
||||
|
||||
@@ -6,10 +6,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def user_root_path
|
||||
case Rails.env
|
||||
when 'development' then 'https://localhost:4201/'
|
||||
else 'https://user.mozo.bar/'
|
||||
end
|
||||
Mozo.user_url
|
||||
end
|
||||
|
||||
def user_dynamic_data_host
|
||||
|
||||
@@ -2,7 +2,4 @@
|
||||
iframe.phone-content-frame src=user_root_path
|
||||
|
||||
.tablet-wrapper
|
||||
- if Rails.env.development?
|
||||
iframe.tablet-content-frame src="https://localhost:4202/supplier/"
|
||||
- else
|
||||
iframe.tablet-content-frame src="https://supplier.mozo.bar/supplier/"
|
||||
iframe.tablet-content-frame src=Mozo.supplier_url
|
||||
|
||||
Reference in New Issue
Block a user