Sha256: 86c2fc92d1ecc487a1820648d111d9d413c827e4673770b98f8648e697fdbfa6
Contents?: true
Size: 413 Bytes
Versions: 25
Compression:
Stored size: 413 Bytes
Contents
module Spree module Seeds class StoreCreditCategories prepend Spree::ServiceModule::Base def call # FIXME: we should use translations here Spree::StoreCreditCategory.find_or_create_by!(name: 'Default') Spree::StoreCreditCategory.find_or_create_by!(name: 'Non-expiring') Spree::StoreCreditCategory.find_or_create_by!(name: 'Expiring') end end end end
Version data entries
25 entries across 25 versions & 1 rubygems