Sha256: 0df69464f24855c87c7e4fcc553fde9416489721c43b82794d50980d0a7e4014

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

module Workarea
  module GiftWrapping
    class Engine < ::Rails::Engine
      include Workarea::Plugin
      isolate_namespace Workarea::GiftWrapping

      config.to_prepare do
        Storefront::Checkout::ShippingViewModel.send(
          :include,
          Storefront::Checkout::GiftOptionsViewModel
        )

        if Plugin.installed?('split_shipping')
          Storefront::Checkout::SplitShippingViewModel.send(
            :include,
            Storefront::Checkout::GiftOptionsViewModel
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-gift_wrapping-1.3.0 lib/workarea/gift_wrapping/engine.rb
workarea-gift_wrapping-1.2.1 lib/workarea/gift_wrapping/engine.rb