Sha256: cf6b8b1252d1331bc2dad8ea19c3f5c62a0c7f92849ed02a4d880ef5e354670c
Contents?: true
Size: 772 Bytes
Versions: 13
Compression:
Stored size: 772 Bytes
Contents
module SpreePurchaseOrder class Engine < ::Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'spree_purchase_order' config.autoload_paths << "#{config.root}/lib" config.generators do |g| g.test_framework :rspec, fixture: false g.fixture_replacement :factory_girl, dir: 'spec/factories' g.assets false g.helper false 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 config.after_initialize do |app| app.config.spree.payment_methods << Spree::PaymentMethod::PurchaseOrder end end end
Version data entries
13 entries across 13 versions & 1 rubygems