Fixed a few bugs, added Arabic to language options, added translations

This commit is contained in:
Godwin
2016-08-02 17:17:52 -07:00
parent e73ed71e32
commit b82c862cad
10 changed files with 43 additions and 31 deletions
+4
View File
@@ -40,6 +40,10 @@ class User < ActiveRecord::Base
role == 'administrator'
end
def self.AVAILABLE_LANGUAGES
[:en, :es, :fr, :ar]
end
def self.get(email)
user = where(email: email).first