Sha256: 2ec529c5882454a61acebfe1fbfae5d98d9fec422304aaecaa0ad7ac1f178cf2

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module Transactionable
  module ActsAsTransactionable
    extend ActiveSupport::Concern

    module ClassMethods
      def acts_as_credit_card_transactionable(options = {})
        include Transactionable::CreditCardTransactionable
      end

      def acts_as_bank_account_transactionable(options = {})
        include Transactionable::BankAccountTransactionable
      end
    end
  end
end

ActiveRecord::Base.send :include, Transactionable::ActsAsTransactionable

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transactionable-0.2.0 lib/transactionable/acts_as_transactionable.rb
transactionable-0.1.0 lib/transactionable/acts_as_transactionable.rb