Class: Basket
- Inherits:
-
Object
- Object
- Basket
- Defined in:
- lib/kete_translatable_content/extensions/models/basket.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.list_as_names_and_urlified_names ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/kete_translatable_content/extensions/models/basket.rb', line 7 def self.list_as_names_and_urlified_names basket_list = Array.new all(:select => 'id, name, urlified_name, locale, original_locale').each do |basket| translated_name = basket.name_translation_for(I18n.locale) || basket.name basket_list << [translated_name, basket.urlified_name] end basket_list end |
Instance Method Details
#additional_footer_content_with_inheritance ⇒ Object
16 17 18 19 20 |
# File 'lib/kete_translatable_content/extensions/models/basket.rb', line 16 def value = parsed_value_from(self._configurable_settings.find_by_name('additional_footer_content')) value ||= parsed_value_from(self.site_basket._configurable_settings.find_by_name('additional_footer_content')) value end |