Remove unneeded attribute alias

#790
This commit is contained in:
Artur Beljajev 2018-04-07 16:21:07 +03:00
parent 2e9acedc90
commit 00a30fc019
5 changed files with 7 additions and 11 deletions

View file

@ -684,7 +684,7 @@ class Domain < ActiveRecord::Base
end
def self.delete_candidates
where("#{attribute_alias(:delete_time)} < ?", Time.zone.now)
where('delete_at < ?', Time.zone.now)
end
def self.uses_zone?(zone)