projectblacklight / spotlight

Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Other
157 stars 64 forks source link

Pass the class argument to serialize as a keyword #3010

Closed jcoyne closed 5 days ago

jcoyne commented 5 months ago

The positional argument is deprecated and will be removed in rails 7.2

corylown commented 5 days ago

It looks like the method signature for ActiveRecord::AttributeMethods::Serialization::ClassMethods#serialize changed to accept keyword arguments with Rails 7.1 not 7.0 so I'm updating this PR to reflect that.

Rails 7.0 Rails 7.1