Skip to content

get out of the way of rails 5.2 ActiveModel::Attributes #18

@jrochkind

Description

@jrochkind

Rails 5.2 has a real attributes API for ActiveModel.

We're doing okay without it, and supporting Rails 5.0-5.2, but let's rename some of our methods and ivars in JsonAttribute::Model to step out of it's way and not conflict, to avoid any weirdness, and in case someone wants to use both.

(Jan 18 2024: We really should move to the models having ActiveModel attributes, and maybe include ActiveModel::API by defualt. See some things possible at https://betacraft.com/blog/08/06/2023/active-model-jsonb-coulmn.html, although it's not totally clear how this gets integrated with an AR container, as they suggest. https://www.reddit.com/r/ruby/comments/199yvhl/progressively_adopt_activemodelapi_for_your_poros/).

Metadata

Metadata

Assignees

No one assigned

    Labels

    maybe?do we need this? feedback welcome

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions