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
is used to get a deep clone of an Arel AST which is necessary when modifying the tree. Using Marshal feel like a hack to get a deep clone, Ruby's initialize_copy feels like a better solution to this problem.
To achieve this all Arel nodes need to implement initialize_copy when their instance variables contain a complex object, a non scalar like String or Integer.
The text was updated successfully, but these errors were encountered:
Currently
is used to get a deep clone of an Arel AST which is necessary when modifying the tree. Using
Marshal
feel like a hack to get a deep clone, Ruby'sinitialize_copy
feels like a better solution to this problem.To achieve this all Arel nodes need to implement
initialize_copy
when their instance variables contain a complex object, a non scalar like String or Integer.The text was updated successfully, but these errors were encountered: