Mixed commit, user facebook issues
This commit is contained in:
@@ -32,8 +32,16 @@ module ApplicationHelper
|
||||
|
||||
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
|
||||
when 'test' then "Qstorage.setItem('root_url', 'http://#{request.host}:#{request.port}/user/index.html');".html_safe
|
||||
when 'development' then "Qstorage.setItem('root_url', 'http://localhost:3000/user/index.html');".html_safe
|
||||
else ''
|
||||
end
|
||||
end
|
||||
|
||||
def user_dynamic_obtain_token_url
|
||||
case Rails.env
|
||||
when 'test' then "$obtain_token_url = 'http://#{request.host}:#{request.port}/user/obtain_token.html';".html_safe
|
||||
when 'development' then "$obtain_token_url = 'http://localhost:3000/user/obtain_token.html';".html_safe
|
||||
else ''
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user