summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-01-23 11:52:38 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-01-23 11:52:38 +0000
commit13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151 (patch)
tree51ae69c0c3837e531b8cef6fac455e06eea04d88 /app/controllers
parent28061fbcdb2cabbef698db2ca3a80cc428388456 (diff)
downloadredmine-13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151.tar.gz
redmine-13aeb797cfaa5a70bd8903d8350ea8ce3e0bb151.zip
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
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/watchers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index dbacb5c76..ae7d09e95 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -209,7 +209,7 @@ class WatchersController < ApplicationController
nil
end
return unless klass && Class === klass # rubocop:disable Style/CaseEquality
- return unless klass < ActiveRecord::Base
+ return unless klass < ApplicationRecord
return unless klass < Redmine::Acts::Watchable::InstanceMethods
scope = klass.where(:id => Array.wrap(params[:object_id]))