Class: SpreePayflow::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spree_payflow.rb

Class Method Summary collapse

Class Method Details

.activateObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/spree_payflow.rb', line 9

def self.activate
  
  require 'active_merchant'
  ActiveMerchant::Billing::PayflowGateway
  
  Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
    Rails.env.production? ? require(c) : load(c)
  end
  
  Gateway::Payflow.register
end