Module: CamaleonCms::MetasDecoratorMethods
- Included in:
- ApplicationDecorator
- Defined in:
- app/decorators/camaleon_cms/metas_decorator_methods.rb
Instance Method Summary collapse
-
#the_meta(key) ⇒ Object
return meta value translated for key in this model.
-
#the_option(key) ⇒ Object
return option value translated for key in this model.
Instance Method Details
#the_meta(key) ⇒ Object
return meta value translated for key in this model
4 5 6 |
# File 'app/decorators/camaleon_cms/metas_decorator_methods.rb', line 4 def (key) object.(key, '').translate(@_deco_locale) end |
#the_option(key) ⇒ Object
return option value translated for key in this model
9 10 11 |
# File 'app/decorators/camaleon_cms/metas_decorator_methods.rb', line 9 def the_option(key) object.get_option(key, '').translate(@_deco_locale) end |