lib/page_rankr/index.rb in PageRankr-3.0.2 vs lib/page_rankr/index.rb in PageRankr-3.1.0
- old
+ new
@@ -3,7 +3,13 @@
module PageRankr
module Index
include Tracker
alias_method :index, :tracked
+
+ def clean(raw)
+ cleaned_content = super(raw)
+ return nil if cleaned_content.nil? || cleaned_content.zero?
+ cleaned_content
+ end
end
end
\ No newline at end of file