Use ApplicationRecord instead of ActiveRecord::Base (#38975).

Patch by Minoru Maeda (@maeda-m).

git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-01-23 11:52:38 +00:00
parent 28061fbcdb
commit 13aeb797cf
63 changed files with 118 additions and 86 deletions

View File

@@ -19,4 +19,6 @@
# Include hook code here
require_relative 'lib/acts_as_watchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Watchable)
Rails.application.reloader.to_prepare do
ApplicationRecord.send(:include, Redmine::Acts::Watchable)
end