Sha256: 79c386f096694a4b4a9864626d4752ce558274cb623d0810bcca0f4885a69224
Contents?: true
Size: 1014 Bytes
Versions: 2
Compression:
Stored size: 1014 Bytes
Contents
module SpreeBillingSisow class Engine < Rails::Engine require 'spree/core' require 'sisow' isolate_namespace Spree engine_name 'spree_billing_sisow' config.autoload_paths += %W(#{config.root}/lib) # 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 initializer "spree_billing_sisow.register.payment_methods", :after => 'spree.register.payment_methods' do |app| app.config.spree.payment_methods += [ Spree::PaymentMethod::SisowBilling::Ideal, Spree::PaymentMethod::SisowBilling::Creditcard, Spree::PaymentMethod::SisowBilling::Bancontact, Spree::PaymentMethod::SisowBilling::Sofort, Spree::PaymentMethod::SisowBilling::Paypalec ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_billing_sisow-0.9.2 | lib/spree_billing_sisow/engine.rb |
spree_billing_sisow-0.9.1 | lib/spree_billing_sisow/engine.rb |