Sha256: eabd0e35aab22a7ff1deff6508064fa39604aa51fb603221d9787fe97956a3ce
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true module SolidusPayuLatam class Engine < Rails::Engine engine_name 'solidus_payu_latam' initializer 'spree.gateway.payment_methods', after: 'spree.register.payment_methods' do |app| app.config.spree.payment_methods << Solidus::Gateway::PayuLatamGateway end def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')).sort.map do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end config.to_prepare(&method(:activate).to_proc) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_payu_latam-0.1.0 | lib/solidus_payu_latam/engine.rb |