finishes i18n set_locale with user settings
This commit is contained in:
parent
5b7ec86ed6
commit
2c1d9aeb9c
4 changed files with 7 additions and 1 deletions
|
|
@ -57,6 +57,10 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def locale
|
||||
settings.profile['language']
|
||||
end
|
||||
|
||||
def name
|
||||
[first_name, last_name].join(" ")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue