Class: Language
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Language
- Includes:
- MasterModel
- Defined in:
- app/models/language.rb,
app/models2/language.rb
Class Method Summary collapse
Class Method Details
.available_languages ⇒ Object
12 13 14 |
# File 'app/models/language.rb', line 12 def self.available_languages Language.where(iso_639_1: I18n.available_locales.map{|l| l.to_s}).order(:position) end |