From 996e56c5cdf8ce7d64dd02c3e9cec641eb52cfc7 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Tue, 2 Feb 2016 12:41:34 +0200 Subject: [PATCH] Story#110395650 - calling instance, not class methods --- app/models/domain.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/domain.rb b/app/models/domain.rb index 513a40718..87f10bea5 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -204,28 +204,28 @@ class Domain < ActiveRecord::Base end def self.clean_expired_pendings + ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__) DomainCron.send(__method__) - ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__) end def self.start_expire_period + ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__) DomainCron.send(__method__) - ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__) end def self.start_redemption_grace_period + ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__) DomainCron.send(__method__) - ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__) end def self.start_delete_period + ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__) DomainCron.send(__method__) - ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__) end def self.destroy_delete_candidates + ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__) DomainCron.send(__method__) - ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__) end class << self