lib/graphdb/model/tx_out.rb in bitcoin2graphdb-0.3.3 vs lib/graphdb/model/tx_out.rb in bitcoin2graphdb-0.3.4
- old
+ new
@@ -7,12 +7,12 @@
property :script_pubkey_asm
property :script_pubkey_hex
property :output_type
property :req_sigs, type: Integer
- has_one :out, :transaction, type: :transaction, model_class: Transaction
- has_many :out, :addresses, type: :address, model_class: Address
- has_one :out, :out_point, type: :spent_input, model_class: TxIn
+ has_one :out, :transaction, type: :transaction, model_class: 'Graphdb::Model::Transaction'
+ has_many :out, :addresses, type: :address, model_class: 'Graphdb::Model::Address'
+ has_one :out, :out_point, type: :spent_input, model_class: 'Graphdb::Model::TxIn'
validates :value, :presence => true
validates :n, :presence => true
scope :with_out_index, -> (n){where(n: n)}
\ No newline at end of file