aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-01 11:03:52 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-01 11:03:52 +0100
commitbe96333dafd0fa0623ca4495237c8c6fa5457c14 (patch)
tree6a0dbc34767db4a49ea9231738fe17dd1df6934a /app/controllers/user_controller.rb
parent3cfa6c4d1c4ae6ba5e3f22ff8757d1ec9dcd8b68 (diff)
parent6ee1e8d0a4a8cfe02797c1a853bf27af2610ad27 (diff)
Merge remote-tracking branch 'openaustralia_github/configuration_refactor' into develop
Conflicts: config/general.yml-example
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 0a9e1d781..c48f75204 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -138,7 +138,7 @@ class UserController < ApplicationController
# Login form
def signin
work_out_post_redirect
- @request_from_foreign_country = country_from_ip != MySociety::Config.get('ISO_COUNTRY_CODE', 'GB')
+ @request_from_foreign_country = country_from_ip != Configuration::iso_country_code
# make sure we have cookies
if session.instance_variable_get(:@dbman)
if not session.instance_variable_get(:@dbman).instance_variable_get(:@original)
@@ -192,7 +192,7 @@ class UserController < ApplicationController
# Create new account form
def signup
work_out_post_redirect
- @request_from_foreign_country = country_from_ip != MySociety::Config.get('ISO_COUNTRY_CODE', 'GB')
+ @request_from_foreign_country = country_from_ip != Configuration::iso_country_code
# Make the user and try to save it
@user_signup = User.new(params[:user_signup])
error = false