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: 189,149 of 198,025
Downloads: 1,126

Daily

Ranking: 31,716 of 197,989
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
61,465,959,699activesupport
37859,974,150activerecord
46808,888,110railties

Owners

#GravatarHandle
1iconkido