Class: Shipworks::Audit

Inherits:
ShipworksRecord show all
Defined in:
app/models/shipworks/audit.rb

Constant Summary collapse

ACTION_MAPPING =
{
  1 => 'Log On',
  2 => 'Log Off',
  3 => 'Upgrade Database',
  4 => 'Backup Database',
  5 => 'Add',
  6 => 'Edit',
  7 => 'Delete',
  8 => 'Reset ShipSense',
  9 => 'Reload ShipSense started',
  10 => 'Combine Order',
  11 => 'Split Order',
}

Instance Method Summary collapse

Methods inherited from ShipworksRecord

table_name

Instance Method Details

#ActionNameObject



23
24
25
# File 'app/models/shipworks/audit.rb', line 23

def ActionName
  ACTION_MAPPING[self.Action] || self.Action
end