Class: Air18n::TranslatorInfo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Air18n::TranslatorInfo
- Defined in:
- lib/air18n/translator_info.rb
Constant Summary collapse
- TRANSLATOR_ROLE_PROOFREAD =
2 ** 0
- TRANSLATOR_ROLE_SIGNED_NDA =
2 ** 1
Instance Method Summary collapse
Instance Method Details
#has_role?(role) ⇒ Boolean
9 10 11 12 13 14 15 |
# File 'lib/air18n/translator_info.rb', line 9 def has_role?(role) if self.roles.nil? false else (self.roles & role) > 0 end end |