Sha256: 9d0f031c042f6fc7db8b60ce299d077a636f138f6d45d32250a82fbe2cf3ffc9
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
module SpreeCorreios class Engine < Rails::Engine engine_name 'spree_correios' config.autoload_paths += %W(#{config.root}/lib) initializer "spree.register.correios_calculator", after: "spree.register.calculators" do |app| app.config.spree.calculators.shipping_methods += [Spree::Calculator::SEDEX, Spree::Calculator::PAC] end # use rspec for tests config.generators do |g| g.test_framework :rspec end def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end config.to_prepare &method(:activate).to_proc end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_correios-1.0.2 | lib/spree_correios/engine.rb |
spree_correios-1.0.1 | lib/spree_correios/engine.rb |
spree_correios-1.0.0 | lib/spree_correios/engine.rb |