Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/wikipedia/page.rb

Content function was only showing content type 'text/x-wiki'
  • Loading branch information...
commit 39b8259686aa1d83055ebf2e4567403e33455e10 1 parent b0008cd
@rhettbarber authored
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.fetch('*') if page['revisions']
end
def sanitized_content
Please sign in to comment.
Something went wrong with that request. Please try again.