Sha256: 04f2c400747492ec86b6bfd9a36614d0f5e1f4758188e03db3a83dad1de55fae

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

module BitcoinActiveRecord::Models::BtcAddress
  extend ActiveSupport::Concern

  included do
    has_many(:payments, inverse_of: :btc_address)
    has_many(:received_payments, inverse_of: :btc_address)

    validates(:public_key, presence: true, uniqueness: { case_sensitive: true })

    auto_strip_attributes(:public_key)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bitcoin_active_record-0.0.2 lib/bitcoin_active_record/models/btc_address.rb
bitcoin_active_record-0.0.1 lib/bitcoin_active_record/models/btc_address.rb