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


3
4
5
# File 'app/decorators/camaleon_cms/metas_decorator_methods.rb', line 3

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


8
9
10
# File 'app/decorators/camaleon_cms/metas_decorator_methods.rb', line 8

def the_option(key)
  object.get_option(key, "").translate(@_deco_locale)
end