Commit 01d973d6 by Mathieu Jobin

Check AR version

parent d06e01bc
...@@ -230,7 +230,7 @@ module Paranoia ...@@ -230,7 +230,7 @@ module Paranoia
end end
end end
if Rails.version > '7' if ActiveRecord.version.to_s > '7'
# Method deleted in https://github.com/rails/rails/commit/dd5886d00a2d5f31ccf504c391aad93deb014eb8 # Method deleted in https://github.com/rails/rails/commit/dd5886d00a2d5f31ccf504c391aad93deb014eb8
@association_cache.clear if persisted? && destroyed_associations.present? @association_cache.clear if persisted? && destroyed_associations.present?
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment