basic authentication stuff
This commit is contained in:
@@ -24,8 +24,16 @@ module ApplicationHelper
|
||||
|
||||
def user_dynamic_data_host
|
||||
case Rails.env
|
||||
when 'test' then "data_host = 'http://#{request.host}:#{request.port}';".html_safe
|
||||
when 'development' then "data_host = 'http://localhost:3000';".html_safe
|
||||
when 'test' then "$data_host = data_host = 'http://#{request.host}:#{request.port}';".html_safe
|
||||
when 'development' then "$data_host = data_host = 'http://localhost:3000';".html_safe
|
||||
else ''
|
||||
end
|
||||
end
|
||||
|
||||
def user_dynamic_root_url
|
||||
case Rails.env
|
||||
when 'test' then "$root_url = 'http://#{request.host}:#{request.port}/user';".html_safe
|
||||
when 'development' then "$root_url = 'http://localhost:3000/user';".html_safe
|
||||
else ''
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user