I'm Mary Poppins, y'all!

active_record_properties

Role management gem for Ruby on Rails

Ruby on Rails Active Record

Type-safe properties stored in JSONB for ActiveRecord models. A modern, lightweight alternative to separate settings tables.

#Why ActiveRecordProperties?

Store model settings and properties in a JSONB column with:

  • Clean DSL - Simple, readable property definitions
  • Type Safety - Built-in type casting for common types
  • Default Values - Static or dynamic (proc) defaults
  • Performance - No JOINs, everything in one table
  • Flexibility - Use any JSONB column name
  • Rails-native - Built on store_accessor and attribute APIs

Share this post