Sha256: 1ffe0eedeb32f321346e4a76399812e2c6651bd3d446bd6d6088993b08298b80

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

class Iro::Alert < Iro::ApplicationRecord
  self.table_name = 'iro_alerts'


  DIRECTION_ABOVE = 'ABOVE'
  DIRECTION_BELOW = 'BELOW'
  def self.directions_list
    [ nil, DIRECTION_ABOVE, DIRECTION_BELOW ]
  end

  STATUS_ACTIVE   = 'active'
  STATUS_INACTIVE = 'inactive'
  STATUSES        = [ 'active', 'inactive' ]


  def self.active
    where( status: STATUS_ACTIVE )
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.4 app/models/iro/alert.rb