finishes i18n set_locale with user settings

This commit is contained in:
Manuel Wiedenmann 2013-06-14 02:39:25 +02:00
parent 5b7ec86ed6
commit 2c1d9aeb9c
4 changed files with 7 additions and 1 deletions

View file

@ -57,6 +57,10 @@ class User < ActiveRecord::Base
end
end
def locale
settings.profile['language']
end
def name
[first_name, last_name].join(" ")
end