Sha256: 1d4c7002e378d0603b39d42b9f29b53683cf22d8481b554a5ebdf03aafebf7c5

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module PiggybakFreeShippingByProduct
  class Engine < ::Rails::Engine
    config.before_initialize do
      ::Piggybak.config do |config|
        config.shipping_calculators << "::PiggybakFreeShippingByProduct::FreeShippingByProduct"
      end
    end

    config.after_initialize do
      ::Piggybak::OrdersController.send(:include, ::PiggybakFreeShippingByProduct::PiggybakOrdersControllerDecorator)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
piggybak_free_shipping_by_product-0.0.1 lib/piggybak_free_shipping_by_product/engine.rb