Sha256: a591854d753fc1bf6cb673fe7d7055f93182c60509155c24f25ff48f633e180c

Contents?: true

Size: 347 Bytes

Versions: 15

Compression:

Stored size: 347 Bytes

Contents

class SecurityInstrument < ActiveRecord::Base
  has_mcfly append_only: true
  attr_accessible :name, :settlement_class
  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

15 entries across 15 versions & 1 rubygems

Version Path
mcfly-0.0.17 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.16 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.15 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.14 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.13 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.12 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.11 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.10 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.7 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.6 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.5 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.4 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.3 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.2 spec/dummy/app/models/security_instrument.rb
mcfly-0.0.1 spec/dummy/app/models/security_instrument.rb