diff options
author | Go MAEDA <maeda@farend.jp> | 2022-09-15 13:14:05 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-09-15 13:14:05 +0000 |
commit | 12c70614168351fb9a8036ecd0366bff8504f438 (patch) | |
tree | 6701dfecb2f9609247282f0f21e7e6d90d413645 /app/models/repository.rb | |
parent | 91e2efb6a92b3414556db4cb5955f7833f7a6fb8 (diff) | |
download | redmine-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/repository.rb')
-rw-r--r-- | app/models/repository.rb | 5 |
1 files changed, 5 insertions, 0 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 |