Merge pull request #265 from internetee/registry-238

Use app timezone in domain#delete_candidateable?
This commit is contained in:
Timo Võhmar 2016-11-28 14:45:00 +02:00 committed by GitHub
commit 7893435bdd

View file

@ -293,7 +293,7 @@ class Domain < ActiveRecord::Base
end
def delete_candidateable?
return false if delete_at.to_date > Date.today
return false if delete_at > Time.zone.now
return false if statuses.include?(DomainStatus::DELETE_CANDIDATE)
return false if statuses.include?(DomainStatus::SERVER_DELETE_PROHIBITED)
true