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
When the user class is loaded it will cause Rails to autoload the Post model as well so marshalling will work. This gem still evaluates the value passed as truthy so everything keeps working as expected. What is the possibility of making this an actual feature instead of accidental elegant solution?
The text was updated successfully, but these errors were encountered:
Hi
It looks like most users workaround the silent marshal failure (#91) by making sure the class you are marshalling is loaded. Example:
This often causes double load warnings such as: warning: already initialized constant Post::SOME_CONSTANT.
An elegant fix that works with this gem currently is:
When the user class is loaded it will cause Rails to autoload the Post model as well so marshalling will work. This gem still evaluates the value passed as truthy so everything keeps working as expected. What is the possibility of making this an actual feature instead of accidental elegant solution?
The text was updated successfully, but these errors were encountered: