Sha256: fee1dc0668bde41270418d06a5863521abc2afb0253097239bd7af4ad2019ccf
Contents?: true
Size: 906 Bytes
Versions: 32
Compression:
Stored size: 906 Bytes
Contents
Spree::Store.all.each do |store| store.supported_locales_list.each do |locale| case locale when 'en' Spree::CmsPage.where( title: 'Feature Page', type: 'Spree::Cms::Pages::FeaturePage', store: store, locale: locale ).first_or_create! when 'fr' Spree::CmsPage.where( title: 'Page de fonctionnalité', type: 'Spree::Cms::Pages::FeaturePage', store: store, locale: locale ).first_or_create! when 'de' Spree::CmsPage.where( title: 'Feature-Seite', type: 'Spree::Cms::Pages::FeaturePage', store: store, locale: locale ).first_or_create! when 'es' Spree::CmsPage.where( title: 'Página de características', type: 'Spree::Cms::Pages::FeaturePage', store: store, locale: locale ).first_or_create! end end end
Version data entries
32 entries across 32 versions & 1 rubygems