Permalink
Browse files

we didn't need that extra `convert_document` in the JSON example

  • Loading branch information...
1 parent de45d03 commit 693bb0c6fd49d41adc16e76fd1e30656c0369da5 @mislav committed Oct 25, 2009
Showing with 0 additions and 4 deletions.
  1. +0 −4 examples/twitter.rb
View
@@ -37,10 +37,6 @@ def self.convert_document(doc)
# now here's the real deal
class Twitter < JsonScraper
- def self.convert_document(doc)
- String === doc ? JsonDocument.new(doc) : doc
- end
-
elements :tweets, :with => JsonScraper do
element :created_at
element :text

0 comments on commit 693bb0c

Please sign in to comment.