RubyGems Navigation menu

attr_json 0.2.0

ActiveRecord attributes stored serialized in a json column, super smooth. For Rails 5.0, 5.1, or 5.2. Typed and cast like Active Record. Supporting nested models, dirty tracking, some querying (with postgres jsonb contains), and working smoothy with form builders. Use your database as a typed object store via ActiveRecord, in the same models right next to ordinary ActiveRecord column-backed attributes and associations. Your json-serialized attr_json attributes use as much of the existing ActiveRecord architecture as we can.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 2.3.0 - December 04, 2023 (48 KB)
  2. 2.2.0 - October 05, 2023 (47 KB)
  3. 2.1.0 - July 13, 2023 (47 KB)
  4. 2.0.1 - February 28, 2023 (46.5 KB)
  5. 2.0.0 - January 30, 2023 (46.5 KB)
  6. 0.2.0 - May 04, 2018 (37.5 KB)
Show all versions (20 total)

Runtime Dependencies (1):

activerecord < 5.3, >= 5.0.0

Development Dependencies (5):

bundler ~> 1.14
rake >= 10.0
rspec ~> 3.5

Owners:

Authors:

  • Jonathan Rochkind

SHA 256 checksum:

1d851f105bf77e3b1ad5a88c3acb9f0507c8ae9080d3fc668c7bc3c0afb7459b

Total downloads 657,297

For this version 2,114

License:

MIT

Required Ruby Version: >= 0

Links: