README.rdoc in enumerate_it-0.6.0 vs README.rdoc in enumerate_it-0.7.0
- old
+ new
@@ -64,9 +64,13 @@
* You can get an array of options, ready to use with the 'select', 'select_tag', etc family of Rails helpers.
RelationshipStatus.to_a # [["Divorced", 4],["Married", 2],["Single", 1],["Widow", 3]]
+* You can retrive a list with values for a group of enumeration constants.
+
+ RelationshipStatus.valus_for %w(MARRIED SINGLE) # [2, 1]
+
* You can manipulate the hash used to create the enumeration:
RelationshipStatus.enumeration # returns the exact hash used to define the enumeration
== Using enumerations