Sha256: 298fc7cb9ef4e314b09a4a79a7aeaba02746c252729f82e1fcd03c8ee9eddeeb
Contents?: true
Size: 363 Bytes
Versions: 15
Compression:
Stored size: 363 Bytes
Contents
module Spree module TranslatableResourceSlug extend ActiveSupport::Concern included do def localized_slugs_for_store(store) supported_locales = store.supported_locales_list supported_locales.each_with_object({}) do |locale, hash| hash[locale] = I18n.with_locale(locale) { slug } end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems