Sha256: 9a7429ed2cca8f0e14505d3a098cf5e07cd60c423e99d8ece79cab0f77a32d35
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
module Spree module PagSeguro class Engine < Rails::Engine engine_name 'spree_pag_seguro' initializer "spree.active_shipping.configuration", after: "spree.environment" do |app| Dir.glob(File.join(File.dirname(__FILE__), "../../lib/spree_pag_seguro_configuration.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end initializer "spree.resgiter.pag_seguro_method", after: "spree.register.payment_methods" do |app| app.config.spree.payment_methods << Spree::PaymentMethod::PagSeguroMethod end 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems