Module: Wakari::Content::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/wakari/models/content/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#current_lang ⇒ Object
38 39 40 |
# File 'lib/wakari/models/content/model.rb', line 38 def current_lang Gaigo::LANGS.get(current_locale) end |
#current_locale ⇒ Object
34 35 36 |
# File 'lib/wakari/models/content/model.rb', line 34 def current_locale I18n.locale.to_s end |
#dom_id(prefix = nil) ⇒ Object
30 31 32 |
# File 'lib/wakari/models/content/model.rb', line 30 def dom_id(prefix = nil) [prefix, self.class.dom_class, to_key].compact.join("_") end |