Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from adammathys/register-gateway
Browse files Browse the repository at this point in the history
Register gateway with Solidus
  • Loading branch information
stewart authored Sep 7, 2016
2 parents aed47c5 + c86cbfd commit 1f86015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/solidus_paypal_braintree/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class Engine < Rails::Engine
g.test_framework :rspec
end

initializer "register_solidus_paypal_braintree_gateway", after: "spree.register.payment_methods" do |app|
app.config.spree.payment_methods << SolidusPaypalBraintree::Gateway
end

def self.activate
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
Expand Down

0 comments on commit 1f86015

Please sign in to comment.