Module: CamaleonCms::MetasDecoratorMethods

Included in:
ApplicationDecorator
Defined in:
app/decorators/camaleon_cms/metas_decorator_methods.rb

Instance Method Summary collapse

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 the_meta(key)
  object.get_meta(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