Sha256: 355bc51a246e856b1a1c1a4679eaff4a2faf18e6c034197e8c6fab71fcfe73db

Contents?: true

Size: 323 Bytes

Versions: 71

Compression:

Stored size: 323 Bytes

Contents

module CamaleonCms::MetasDecoratorMethods
  # return meta value translated for key in this model
  def the_meta(key)
    object.get_meta(key, "").translate(@_deco_locale)
  end

  # return option value translated for key in this model
  def the_option(key)
    object.get_option(key, "").translate(@_deco_locale)
  end
end

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
camaleon_cms-2.6.4 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.6.3 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.6.2 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.6.1 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.6.0.1 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.6.0 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.5.3.1 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.5.3 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.5.2 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms_rails6-2.5.0 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.5.1 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.5.0 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.9 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.8 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.7 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.6 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.5 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.4 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.3 app/decorators/camaleon_cms/metas_decorator_methods.rb
camaleon_cms-2.4.6.2 app/decorators/camaleon_cms/metas_decorator_methods.rb