diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-05-02 15:54:21 +0000 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-05-02 15:54:21 +0000 |
commit | 37606e666736c9686054ee5155e3d2d21eb1a0c9 (patch) | |
tree | 9c81314df7c2e8d8b0390bf606ebc98a2cce1864 /app/models/pages_domain.rb | |
parent | 00a5b9b0fa9ed8086b7a6c3528281a5038327aa3 (diff) | |
parent | fc22626f453f64409ad5b2967cdec541dbcc041d (diff) | |
download | gitlab-ce-37606e666736c9686054ee5155e3d2d21eb1a0c9.tar.gz |
Merge branch '9932-fix-deprecated-attribute_changed-ce' into 'master'
[CE] Remove deprecated usage of `attribute_changed?`
See merge request gitlab-org/gitlab-ce!27577
Diffstat (limited to 'app/models/pages_domain.rb')
-rw-r--r-- | app/models/pages_domain.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/pages_domain.rb b/app/models/pages_domain.rb index 9e806b2e232..407d85b1520 100644 --- a/app/models/pages_domain.rb +++ b/app/models/pages_domain.rb @@ -26,7 +26,7 @@ class PagesDomain < ApplicationRecord after_initialize :set_verification_code after_create :update_daemon - after_update :update_daemon, if: :pages_config_changed? + after_update :update_daemon, if: :saved_change_to_pages_config? after_destroy :update_daemon scope :enabled, -> { where('enabled_until >= ?', Time.now ) } @@ -148,7 +148,7 @@ class PagesDomain < ApplicationRecord end # rubocop: enable CodeReuse/ServiceClass - def pages_config_changed? + def saved_change_to_pages_config? saved_change_to_project_id? || saved_change_to_domain? || saved_change_to_certificate? || |