summaryrefslogtreecommitdiffstats
path: root/lib/redmine/acts/positioned.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-03 15:12:21 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-03 15:12:21 +0000
commit01f523f1658bdac92cfd2d1bfeb6999db2f23b46 (patch)
tree39756acff3e4b90c52afb3626cbf558b14740640 /lib/redmine/acts/positioned.rb
parente9d5b0b8dc7f22a31b788ec99f585e46818ba7fe (diff)
downloadredmine-01f523f1658bdac92cfd2d1bfeb6999db2f23b46.tar.gz
redmine-01f523f1658bdac92cfd2d1bfeb6999db2f23b46.zip
Rails 6: Fix deprecation warning "Class level methods will no longer inherit scoping" (#32911).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19490 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/acts/positioned.rb')
-rw-r--r--lib/redmine/acts/positioned.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/acts/positioned.rb b/lib/redmine/acts/positioned.rb
index bb7f80524..f8134c6de 100644
--- a/lib/redmine/acts/positioned.rb
+++ b/lib/redmine/acts/positioned.rb
@@ -66,7 +66,7 @@ module Redmine
h[column] = yield(column)
h
end
- self.class.where(condition_hash)
+ self.class.unscoped.where(condition_hash)
end
def set_default_position