mirror of
https://github.com/internetee/registry.git
synced 2025-07-05 18:53:26 +02:00
Story#110395650 - calling instance, not class methods
This commit is contained in:
parent
c38986adc3
commit
996e56c5cd
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue