Create a gist now

Instantly share code, notes, and snippets.

gem 'activesupport', '= 3.2.13'
gem 'twitter', '= 4.6.1'
gem 'json', '= 1.7.7'
require 'twitter'
require 'active_support'
tweet = Twitter::Tweet.new(:id => 28669546014, :user => {:id => 7505382, :screen_name => 'sferik'})
ActiveSupport::JSON.encode(tweet)
# => [...].rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/twitter-4.6.1/lib/twitter/base.rb:96: stack level too deep (SystemStackError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment