Screened Urls page shows results for each domain instead of each url

This commit is contained in:
Neil Lalonde
2013-11-04 16:24:32 -05:00
parent 0b79636b99
commit bd9b85f076
8 changed files with 33 additions and 9 deletions

View File

@ -18,7 +18,7 @@ class ScreenedUrl < ActiveRecord::Base
def normalize
self.url = ScreenedUrl.normalize_url(self.url) if self.url
self.domain = self.domain.downcase if self.domain
self.domain = self.domain.downcase.sub(/^www\./, '') if self.domain
end
def self.watch(url, domain, opts={})