Sha256: 6b36db8dcd8a694fc073ded485a95ef70ac779737e8da088d1ab39def0c4df2f

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

module SpreePostalService
  class Engine < Rails::Engine
    engine_name 'spree_postal_service'

    config.autoload_paths += %W(#{config.root}/lib)

    initializer 'spree.register.calculators' do |app|
      require 'spree/calculator/postal_service'

      app.config.spree.calculators.shipping_methods << Spree::Calculator::PostalService
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_postal_service-2.0.1 lib/spree_postal_service/engine.rb
spree_postal_service-2.0.0 lib/spree_postal_service/engine.rb
spree_postal_service-1.3.0 lib/spree_postal_service/engine.rb
spree_postal_service-1.2.0 lib/spree_postal_service/engine.rb
spree_postal_service-1.1.2 lib/spree_postal_service/engine.rb