summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-15 13:14:05 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-15 13:14:05 +0000
commit12c70614168351fb9a8036ecd0366bff8504f438 (patch)
tree6701dfecb2f9609247282f0f21e7e6d90d413645 /app/models
parent91e2efb6a92b3414556db4cb5955f7833f7a6fb8 (diff)
downloadredmine-12c70614168351fb9a8036ecd0366bff8504f438.tar.gz
redmine-12c70614168351fb9a8036ecd0366bff8504f438.zip
Rename Repository#supports_all_revisions? to Repository#supports_history? (#37657).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21816 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb5
-rw-r--r--app/models/repository/filesystem.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index dfed2b611..b6c8f0988 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -185,6 +185,11 @@ class Repository < ActiveRecord::Base
end
def supports_all_revisions?
+ ActiveSupport::Deprecation.warn 'Repository#supports_all_revisions? is deprecated and will be removed in Redmine 6.0. Please use #supports_history instead.'
+ supports_history?
+ end
+
+ def supports_history?
true
end
diff --git a/app/models/repository/filesystem.rb b/app/models/repository/filesystem.rb
index 3ce7c5d73..52e888122 100644
--- a/app/models/repository/filesystem.rb
+++ b/app/models/repository/filesystem.rb
@@ -41,7 +41,7 @@ class Repository::Filesystem < Repository
'Filesystem'
end
- def supports_all_revisions?
+ def supports_history?
false
end