Story#110395650 - calling instance, not class methods

This commit is contained in:
Vladimir Krylov 2016-02-02 12:41:34 +02:00
parent c38986adc3
commit 996e56c5cd

View file

@ -204,28 +204,28 @@ class Domain < ActiveRecord::Base
end end
def self.clean_expired_pendings def self.clean_expired_pendings
ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__)
DomainCron.send(__method__) DomainCron.send(__method__)
ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__)
end end
def self.start_expire_period def self.start_expire_period
ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__)
DomainCron.send(__method__) DomainCron.send(__method__)
ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__)
end end
def self.start_redemption_grace_period def self.start_redemption_grace_period
ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__)
DomainCron.send(__method__) DomainCron.send(__method__)
ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__)
end end
def self.start_delete_period def self.start_delete_period
ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__)
DomainCron.send(__method__) DomainCron.send(__method__)
ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__)
end end
def self.destroy_delete_candidates def self.destroy_delete_candidates
ActiveSupport::Deprecation.instance.deprecation_warning(DomainCron, __method__)
DomainCron.send(__method__) DomainCron.send(__method__)
ActiveSupport::Deprecation.deprecate_methods(DomainCron, __method__)
end end
class << self class << self