Categories: None [Edit]

values_for

https://rubygems.org/gems/values_for
https://github.com/jsl/values_for
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.

Total

Ranking: 73,686 of 189,169
Downloads: 13,114

Daily

Ranking: 94,810 of 189,148
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,268,627,358activesupport
36748,147,600activerecord

Owners

#GravatarHandle
1iconjsl