Add twitter to Onebox.options

This commit is contained in:
Neil Lalonde 2014-01-28 15:51:29 -05:00
parent d343e9f360
commit 946e837542
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
require_dependency 'twitter_api'
Onebox.options = {
twitter_client: TwitterApi
}

View file

@ -24,6 +24,8 @@ class TwitterApi
JSON.parse(twitter_get(tweet_uri_for id))
end
alias_method :status, :tweet_for
def raw_tweet_for(id)
twitter_get(tweet_uri_for id)
end