Categories: None [Edit]

inquiry_attrs

https://rubygems.org/gems/inquiry_attrs
https://github.com/pniemczyk/inquiry_attrs
InquiryAttrs wraps ActiveRecord/ActiveModel (and StoreModel/Dry::Struct) attributes with predicate-style inquiry methods. Write user.status.active? instead of user.status == "active". Blank/nil values safely return false for every predicate — no more NoMethodError on nil. Run `rails inquiry_attrs:install` to generate an initializer that auto-includes the concern into every ActiveRecord model.

Total

Ranking: 188,806 of 192,156
Downloads: 490

Daily

Ranking: 135,768 of 192,137
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,326,454,339activesupport
36779,330,657activerecord
46730,888,973railties

Owners

#GravatarHandle
1iconkido