Skip to content

Commit

Permalink
Another warning TODO: we're still getting it!!! globalize/globalize#811
Browse files Browse the repository at this point in the history
```
Rendered shared/_social_media_meta_tags.html.erb
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 :metadata, type: Object
 (called from require at <internal:/rbenv/versions/3.2.3/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38)
```
  • Loading branch information
javierm committed Apr 15, 2024
1 parent e65aca4 commit 18bd5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/legislation/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Legislation::Annotation < ApplicationRecord
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases

serialize :ranges, Array
serialize :ranges, type: Array

belongs_to :draft_version, foreign_key: "legislation_draft_version_id", inverse_of: :annotations
belongs_to :author, -> { with_hidden }, class_name: "User", inverse_of: :legislation_annotations
Expand Down

0 comments on commit 18bd5b7

Please sign in to comment.