Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
simukappu committed Aug 12, 2024
1 parent 2aa6e4f commit 59446b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/activity_notification/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module Models

# https://github.com/simukappu/activity_notification/issues/166
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
# :nocov:
if (Gem::Version.new("5.2.8.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("6.0")) ||
(Gem::Version.new("6.0.5.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("6.1")) ||
(Gem::Version.new("6.1.6.1") <= Rails.gem_version && Rails.gem_version < Gem::Version.new("7.0"))
Expand All @@ -39,4 +40,5 @@ module Models
ActiveRecord.yaml_column_permitted_classes << Symbol
ActiveRecord.yaml_column_permitted_classes << Time
end
# :nocov:
end

0 comments on commit 59446b4

Please sign in to comment.