@@ 2,12 2,18 @@
require "pg/em"
require "bigdecimal"
+require "blather/client/dsl" # Require this first to not auto-include
require "blather/client"
require "braintree"
require "dhall"
require "em-hiredis"
require "em_promise"
+singleton_class.class_eval do
+ include Blather::DSL
+ Blather::DSL.append_features(self)
+end
+
require_relative "lib/btc_sell_prices"
require_relative "lib/buy_account_credit_form"
require_relative "lib/customer"
@@ 62,8 68,6 @@ end
BRAINTREE = AsyncBraintree.new(**CONFIG[:braintree])
-Blather::DSL.append_features(self.class)
-
def panic(e)
warn "Error raised during event loop: #{e.message}"
warn e.backtrace if e.respond_to?(:backtrace)