Skip to content

Commit

Permalink
Fix deprecation warning about serializer keywords
Browse files Browse the repository at this point in the history
    DEPRECATION WARNING: Passing the class as positional argument is deprecated and will be removed in Rails 7.2.

    Please pass the class as a keyword argument:

      serialize :serialized, type: Array
     (called from <class:TestSerializedColumn> at /home/andy/src/oracle-enhanced/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb:446)
  • Loading branch information
andynu committed Mar 25, 2024
1 parent 113446a commit 551e5b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class ::TestPost < ActiveRecord::Base
end
end
class ::TestSerializedColumn < ActiveRecord::Base
serialize :serialized, Array
serialize :serialized, type: Array
end
end

Expand Down

0 comments on commit 551e5b9

Please sign in to comment.