Class: Iro::Stock

Inherits:
ApplicationRecord show all
Defined in:
app/models/iro/stock.rb

Overview

SQL

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.activeObject



14
15
16
# File 'app/models/iro/stock.rb', line 14

def self.active
  where( status: STATUS_ACTIVE )
end