Skip to content

Commit

Permalink
Pass coder to serialize as keyword argument
Browse files Browse the repository at this point in the history
Passing coder to serialize as a positional argument is deprecated and will
cause errors in Active Record after 7.1.
  • Loading branch information
jrmhaig committed Jun 30, 2024
1 parent ca0ab62 commit fb0712d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Drop support for Rails 5.2, Ruby 2.5 and 2.6. [https://github.com/amoeba-rb/amoeba/pull/120]
* Notes on contributing. Github Actions for automate tests. [https://github.com/amoeba-rb/amoeba/pull/124]
* Fix tests for Active Record after 7.1. [https://github.com/amoeba-rb/amoeba/pull/127]

### 3.3.0

Expand Down
2 changes: 1 addition & 1 deletion spec/support/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def self.dump(int_array)
end
end

serialize :value, ArrayPack
serialize :value, coder: ArrayPack

before_create :hydrate_me

Expand Down

0 comments on commit fb0712d

Please sign in to comment.