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. 1.0.2 February 27, 2026 (18.5 KB)
  2. 1.0.1 February 27, 2026 (16.5 KB)
  3. 1.0.0 February 27, 2026 (16 KB)

Pushed by

SHA 256 checksum