Sha256: af1a4a34f51452929b5d1ff46359060f59b110a5f46ba48830160de09742545f
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true module FlowcommerceSpree class Engine < ::Rails::Engine require 'spree/core' isolate_namespace FlowcommerceSpree config.before_initialize do FlowcommerceSpree::Config = FlowcommerceSpree::Settings.new end config.after_initialize do # init Flow payments as an option # app.config.spree.payment_methods << Spree::Gateway::Flow Flow::SimpleGateway.clear_zero_amount_payments = true end def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')).sort.each do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end config.to_prepare(&method(:activate).to_proc) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flowcommerce_spree-0.0.2 | lib/flowcommerce_spree/engine.rb |
flowcommerce_spree-0.0.1 | lib/flowcommerce_spree/engine.rb |