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,114 of 193,767
Downloads: 706

Daily

Ranking: 114,013 of 193,752
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,368,374,728activesupport
36801,793,063activerecord
45752,512,638railties

Owners

#GravatarHandle
1iconkido