Module: Alchemy::Language::Code::ClassMethods
- Defined in:
- app/models/alchemy/language/code.rb
Instance Method Summary collapse
Instance Method Details
#find_by_code(code) ⇒ Object
14 15 16 17 18 |
# File 'app/models/alchemy/language/code.rb', line 14 def find_by_code(code) codes = code.split('-') codes << '' if codes.length == 1 find_by_language_code_and_country_code *codes end |