You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve shared a minimal reproduction script as a gist.
Apologies in advance if we’re just Doing It Wrong and need to change the way we decorate attributes. I’m not familiar enough with Active Record’s attributes system to know that off the top of my head or to understand what Jonathan’s commit changed.
We have a model that defines a
store
attribute, then redefines it with a wrapper type for encryption, like so:The
encrypts
macro boils down to:After 4cc9c0f, values stored in the
data
attribute no longer make it to the DB:I’ve shared a minimal reproduction script as a gist.
Apologies in advance if we’re just Doing It Wrong and need to change the way we decorate attributes. I’m not familiar enough with Active Record’s attributes system to know that off the top of my head or to understand what Jonathan’s commit changed.
/cc @jonathanhefner @kamipo
The text was updated successfully, but these errors were encountered: