Skip to content

Conversation

lucasgomide
Copy link

@lucasgomide lucasgomide commented Mar 3, 2025

Address this issue

ActiveRecord 7 introduced a change in the serialize method, requiring
the coder: keyword argument instead of the previous syntax. This commit
adds version detection to apply the correct serialize syntax dynamically.

This ensures the library remains compatible across different versions of
ActiveRecord without breaking older setups.

@Leonardo-Zappani
Copy link

UP

1 similar comment
@ricardogontarz-subbase
Copy link

UP

@nardocesar
Copy link

Up!

@thiagobonfante
Copy link

+1

2 similar comments
@charlieslin
Copy link

+1

@jeanlondero
Copy link

+1

@lucasgomide
Copy link
Author

@jonhue is ready to review. Can you review that?

Some .sqlite files were added after running rspec
ActiveRecord 7 introduced a change in the `serialize` method, requiring
the `coder:` keyword argument instead of the previous syntax. This commit
adds version detection to apply the correct `serialize` syntax dynamically.

This ensures the library remains compatible across different versions of
ActiveRecord without breaking older setups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants