Sha256: 0245f96cf107ac20cf47394b9ca7c8f79947b660e119a7f558912a687a14b3e8
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true category = Spree::ShippingCategory.find_or_create_by(name: "PadrĂ£o") todo_brasil = Spree::Zone.find_or_create_by!(name: "todo_brasil", description: "Todo Brasil") todo_brasil.zone_members.find_or_create_by!(zoneable: Spree::Country.find_by!(iso: "BR")) if Rails.env.development? Spree::ShippingMethod.create!( name: "Coruja", available_to_all: true, code: "CRJ", shipping_categories: [category], calculator: Spree::Calculator::Shipping::FlatRate.create!( preferred_amount: 20.0, preferred_currency: "BRL" ), zones: [todo_brasil], stores: [Spree::Store.default] ) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_brazilian_adaptations-1.3.0 | db/spree_br/shipping.rb |
solidus_brazilian_adaptations-1.2.0 | db/spree_br/shipping.rb |