Sha256: 4bd3f329ff95ef6899fe8c81326a2ab773c82ce9efa8ae34fd3961544a11bfd5

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

class SecurityInstrument < ActiveRecord::Base
  has_mcfly append_only: true
  validates_presence_of :name, :settlement_class
  mcfly_validates_uniqueness_of :name

  mcfly_lookup :lookup, sig: 2 do
    |pt, name|
    find_by_name(name)
  end

  mcfly_lookup :lookup_all, sig: 1 do
    |pt| all
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mcfly-0.1.0 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.22 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.21 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.20 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.19 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.18 spec/dummy/app/models/security_instrument.rb