Sha256: d127ba9ed3cffc7952e141dc830e05510b1f9a0612358932367b4a47435c7f5c

Contents?: true

Size: 1.02 KB

Versions: 24

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.pag_seguro.preferences", :after => "spree.active_shipping.configuration" do |app|
        Spree::PagSeguro::Config = Spree::PagSeguroConfiguration.new
      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

24 entries across 24 versions & 1 rubygems

Version Path
spree_pag_seguro-1.0.0.beta24 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta23 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta22 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta21 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta20 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta19 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta18 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta17 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta16 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta15 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta14 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta13 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta12 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta11 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta10 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta9 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta8 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta7 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta6 lib/spree_pag_seguro/engine.rb
spree_pag_seguro-1.0.0.beta5 lib/spree_pag_seguro/engine.rb