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
classRot13JSONdefself.rot13(string)string.tr("a-zA-Z","n-za-mN-ZA-M")end# Serializes an attribute value to a string that will be stored in the database.defself.dump(value)rot13(ActiveSupport::JSON.dump(value))end# Deserializes a string from the database to an attribute value.defself.load(string)ActiveSupport::JSON.load(rot13(string))endendclassUser < ActiveRecord::Baseserialize:preferences,Rot13JSONend
Context:
Suppose I have
User
model like this:and
UserSerializer
class definition:When serializing user instances:
Expected
Got
Question:
Will you have the plan to fix it soon? I'm migrating from AMS to Panko and getting in trouble with it
Reference:
Serialize function in Active model
The text was updated successfully, but these errors were encountered: