class A extend Enumerize enumerize :status, in: { pending: 0, in_progress: 1, completed: 2 } end A.status.values.map { |v| [v.text, v.value] }
class A extend Enumerize enumerize :status, in: { pending: 0, in_progress: 1, completed: 2 } end A.status.values.map { |v| [v.text, v.value] }