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,210 of 196,338
Downloads: 1,015

Daily

Ranking: 30,638 of 196,320
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,416,844,709activesupport
37829,932,541activerecord
46779,612,981railties

Owners

#GravatarHandle
1iconkido