lib/moneytree/account.rb in moneytree-rails-0.1.3 vs lib/moneytree/account.rb in moneytree-rails-0.1.4

- old
+ new

@@ -1,11 +1,12 @@ require 'active_support/concern' module Moneytree module Account extend ActiveSupport::Concern + # FIXME: see if we can remove config.current_account = :current_merchant and set it from here included do - has_one :moneytree_payment_gateway, class_name: 'Moneytree::PaymentGateway', foreign_key: 'account_id' + has_one :moneytree_payment_gateway, class_name: 'Moneytree::PaymentGateway', foreign_key: 'account_id', inverse_of: :account, as: :account end end end