Class: ReturnCondition

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/return_condition.rb

Constant Summary

GOOD =
'Good'
DEFECTIVE =
'Defective'
DAMAGED =
'Worn / Damaged'
CONDITIONS =
[GOOD, DEFECTIVE, DAMAGED]

Class Method Summary (collapse)

Class Method Details

+ (Array[Array]) select_form

method to get all the return conditions for a RMA form

['Good', 1], ['Defective', 2

... ]

Parameters:

  • (none)

Returns:

  • (Array[Array])


17
18
19
# File 'app/models/return_condition.rb', line 17

def self.select_form
  all.collect {|r| [r.label, r.id]}
end