diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 08:21:22 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 08:31:44 +1100 |
commit | 6df81c66932773b4a461816c9cd6b85cf7157776 (patch) | |
tree | 88c2ba867afab54251bc8a33136ec05a17c6b940 /app/models/user.rb | |
parent | 26c9c6a3f0f5bb33fa52841d5854bf52b7cf2e20 (diff) | |
parent | afa9ef14323dfbfd412f0c8872e0b3736d60e7a3 (diff) |
Merge branch 'i18n_rails3_preparation' into rails-3-spike
Conflicts:
Gemfile.lock
app/controllers/general_controller.rb
app/controllers/public_body_controller.rb
spec/controllers/public_body_controller_spec.rb
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 490587c39..bc04b5449 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -90,12 +90,7 @@ class User < ActiveRecord::Base end def get_locale - if !self.locale.nil? - locale = self.locale - else - locale = I18n.locale - end - return locale.to_s + (self.locale || I18n.locale).to_s end def visible_comments |