Sha256: c97bf439656650c747e48cd50b8d166028c15121b7f11510c0cb3fdbf2d02595

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 Bytes

Contents

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', inverse_of: :account, as: :account
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
moneytree-rails-0.1.11 lib/moneytree/account.rb
moneytree-rails-0.1.10 lib/moneytree/account.rb
moneytree-rails-0.1.9 lib/moneytree/account.rb
moneytree-rails-0.1.8 lib/moneytree/account.rb
moneytree-rails-0.1.7 lib/moneytree/account.rb
moneytree-rails-0.1.6 lib/moneytree/account.rb
moneytree-rails-0.1.5 lib/moneytree/account.rb
moneytree-rails-0.1.4 lib/moneytree/account.rb