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: 187,936 of 195,762
Downloads: 954

Daily

Ranking: 75,382 of 195,747
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,402,392,100activesupport
36821,302,986activerecord
46771,277,066railties

Owners

#GravatarHandle
1iconkido