Rails 4.1 has recently been released and it came out with the usual bag of goodies, one of the most notable being ActiveRecord enums, a handy new feature that simplifies the creation and use of state attributes for your models. Consider the following use case: our app needs users, and each of them has a state that can be registered, active or blocked. How would have we addressed the task in the pa