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.
Required Ruby Version
>= 3.0
Authors
Pawel Niemczyk
Versions
-
1.0.2
-
source
- 1.0.2 source February 27, 2026 (18.5 KB)
-
-
1.0.1
-
source
- 1.0.1 source February 27, 2026 (16.5 KB)
-
-
1.0.0
-
source
- 1.0.0 source February 27, 2026 (16 KB)
-