Sha256: e7874294c47743383074a85ee787c555c2337e5eac4af1c67298e41207bbe0fc
Contents?: true
Size: 355 Bytes
Versions: 1
Compression:
Stored size: 355 Bytes
Contents
class Iro::Stock include Mongoid::Document include Mongoid::Timestamps store_in collection: 'iro_stocks' STATUS_ACTIVE = 'active' STATUS_INACTIVE = 'inactive' STATUSES = [ 'active', 'inactive' ] def self.active where( status: STATUS_ACTIVE ) end field :ticker validates :ticker, uniqueness: true, presence: true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iron_warbler-2.0.7.8 | app/models/iro/stock.rb |