Rubygems | Latest Versions for values_forhttps://rubygems.org/gems2023-09-28T02:19:03Zvalues_for (0.1)https://rubygems.org/gems/values_for/versions/0.12010-10-28T12:05:36ZJustin LeitgebAdds an enumerable attribute to an ActiveRecord-backed class
values_for makes your ActiveRecord-backed class work with an enumerable type. Instead of existing
ActiveRecord plugins such as enum_fu, which store the enumerable attribute as an integer, values_for
stores the content of the enumerable attribute in a varchar column of the database. The field will
automatically validate using validates_inclusion_of and accepts all the same options.
values_for will also optionally create named scopes, predicate methods, and constants defining the
possible values for enumerable types on your model. By default, however, it avoids polluting your
model with things you may not need unless these features are specifically requested.
values_for (0.0.9)https://rubygems.org/gems/values_for/versions/0.0.92010-10-28T11:53:47ZJustin LeitgebAdds an enumerable attribute to an ActiveRecord-backed class
values_for makes your ActiveRecord-backed class work with an enumerable type. Instead of existing
ActiveRecord plugins such as enum_fu, which store the enumerable attribute as an integer, values_for
stores the content of the enumerable attribute in a varchar column of the database. The field will
automatically validate using validates_inclusion_of and accepts all the same options.
values_for will also optionally create named scopes, predicate methods, and constants defining the
possible values for enumerable types on your model. By default, however, it avoids polluting your
model with things you may not need unless these features are specifically requested.