Browse files

Update lib/wikipedia/page.rb

Wikipedia API has updated, now passes back content type as a first parameter, content as a second parameter.
  • Loading branch information...
1 parent 96cb5d2 commit 64858563ad4cfc231dc3ba2e4599be0694330d09 @baygross baygross committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wikipedia/page.rb
View
2 lib/wikipedia/page.rb
@@ -11,7 +11,7 @@ def page
end
def content
- page['revisions'].first.values.first if page['revisions']
+ page['revisions'].first.values[1] if page['revisions']
end
def sanitized_content

0 comments on commit 6485856

Please sign in to comment.