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 have some rails models with custom Postgres jsonb attributes which are serialized/deserialized using the Attributes API. In other words, they are POROs with the following mixins:
ActiveModel::Model
ActiveModel::Attributes
ActiveModel::Serialization
It looks like amazing_print just dumps these by calling inspect on them. What's the right way to add support to amazing print for these types? Add something to amazing_print/lib/amazing_print/ext/? Or modify the ActiveRecord extension? It looks like maybe you could just add another switch case here?
The text was updated successfully, but these errors were encountered:
Hey @james-caresnap sorry for the super delayed response but this sounds like a great idea! Sounds like ActiveRecord extension should be fine for this. I welcome a pull request!
I have some rails models with custom Postgres jsonb attributes which are serialized/deserialized using the Attributes API. In other words, they are POROs with the following mixins:
ActiveModel::Model
ActiveModel::Attributes
ActiveModel::Serialization
It looks like amazing_print just dumps these by calling
inspect
on them. What's the right way to add support to amazing print for these types? Add something toamazing_print/lib/amazing_print/ext/
? Or modify the ActiveRecord extension? It looks like maybe you could just add another switch case here?The text was updated successfully, but these errors were encountered: