110245112-find_by_overwrite

This commit is contained in:
Stas 2015-12-18 14:46:38 +02:00
parent a59d61aa44
commit a790693f3e

View file

@ -23,6 +23,10 @@ class WhoisRecord < ActiveRecord::Base
end
end
def self.find_by_name(name)
WhoisRecord.where("lower(name) = ?", name.downcase)
end
def generated_json
@generated_json ||= generate_json
end