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,966 of 197,258
Downloads: 1,096

Daily

Ranking: 93,637 of 197,235
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,448,506,135activesupport
37848,964,906activerecord
47798,146,182railties

Owners

#GravatarHandle
1iconkido