[refs #105] Change LANGUAGE constant into User

This commit is contained in:
konstantin.grabar 2012-01-18 17:06:18 +04:00
parent bbbf17c2b4
commit 01d8cd8dcc
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class User < ActiveRecord::Base
ROLES = ['admin']
LANGUAGES = ['ru', 'en']
LANGUAGES_FOR_SELECT = [['Russian', 'ru'], ['English', 'en']]
LANGUAGES = LANGUAGES_FOR_SELECT.map(&:last)
devise :database_authenticatable, :registerable, :omniauthable, # :token_authenticatable, :encryptable, :timeoutable
:recoverable, :rememberable, :validatable #, :trackable, :confirmable, :lockable