Module: Concerns::Translatable
- Extended by:
- ActiveSupport::Concern
- Includes:
- Storable
- Included in:
- Article, EmailTemplate, Form, FormField, NavigationItem, Page, Snippet
- Defined in:
- app/models/concerns/translatable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from Storable
Instance Method Details
#translatable? ⇒ Boolean
25 26 27 |
# File 'app/models/concerns/translatable.rb', line 25 def translatable? true end |
#translation(locale = I18n.locale) ⇒ Object
29 30 31 |
# File 'app/models/concerns/translatable.rb', line 29 def translation(locale = I18n.locale) store(locale) end |