lib/async_braintree.rb 🔗
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "braintree"
+
# Braintree is not async, so wrap in EM.defer for now
class AsyncBraintree
def initialize(environment:, merchant_id:, public_key:, private_key:, **)
Stephen Paul Weber created
lib/async_braintree.rb | 2 ++
sgx_jmp.rb | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "braintree"
+
# Braintree is not async, so wrap in EM.defer for now
class AsyncBraintree
def initialize(environment:, merchant_id:, public_key:, private_key:, **)
@@ -4,7 +4,6 @@ require "pg/em/connection_pool"
require "bandwidth"
require "bigdecimal"
require "blather/client/dsl"
-require "braintree"
require "date"
require "dhall"
require "em-hiredis"