Rails: enumerizeでselect box用の配列を作る

class A
  extend Enumerize
  enumerize :status, in: { pending: 0, in_progress: 1, completed: 2 }
end

A.status.values.map { |v| [v.text, v.value] }
Pocket