summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-04-23 17:30:18 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-04-30 15:24:25 +0800
commitfc22626f453f64409ad5b2967cdec541dbcc041d (patch)
tree9686c1c160af34db2038c241ab7f0b665f1c51a0 /app/models/project.rb
parenta2543ee29a97f61f960994d473291c7224c50c3d (diff)
downloadgitlab-ce-fc22626f453f64409ad5b2967cdec541dbcc041d.tar.gz
Remove deprecated uses of attribute_changed?9932-fix-deprecated-attribute_changed-ce
Prepares us for upgrade to Rails 5.2
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a29100405f9..b0dbf09ecbf 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1912,8 +1912,8 @@ class Project < ApplicationRecord
false
end
- def full_path_was
- File.join(namespace.full_path, previous_changes['path'].first)
+ def full_path_before_last_save
+ File.join(namespace.full_path, path_before_last_save)
end
alias_method :name_with_namespace, :full_name