Enumerable_constants is a project mainly written in Ruby, it's free.
Enumerate over your contant values.
This gem can be used for situations where enumerating over constant values is desired. This facilitates keeping the code DRY by keeping the constant values defined in one place, and still having the ability to enumerate over their values wherever they are needed.
validates_inclusion_of
validation