RubyGems Navigation menu

inquiry_attrs 1.0.2

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.

Gemfile:
=

install:
=

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)

Runtime Dependencies (3):

activerecord >= 7.0, < 9
activesupport >= 7.0, < 9
railties >= 7.0, < 9

Owners:

Pushed by:

Authors:

  • Pawel Niemczyk

SHA 256 checksum:

=

Total downloads 276

For this version 101

Version Released:

License:

MIT

Required Ruby Version: >= 3.0

Links: