Work with JSON-backed attributes as ActiveRecord-ish models

StoreModel gem allows you to wrap JSON-backed DB columns with ActiveModel-like classes.💪 Powered with Attributes API. You can use a number of familiar types or write your own🔧 Works like ActiveModel. Validations, enums and nested attributes work very similar to APIs provided by Rails1️⃣ Follows single responsibility principle. Keep the logic around the data stored in a JSON column separated from the model👷‍♂️ Born in production.
Work with JSON-backed attributes as ActiveRecord-ish models #ruby #rubydeveloper #rubyonrails #activerecord-ish https://rubyonrails.ba/single/work-with-json-backed-attributes-as-activerecord-ish-models

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles