awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

require 'awesome_print' returns nil #84

Closed gjorgensen closed 11 years ago

gjorgensen commented 12 years ago

Works in irb but fails in rails console.

Gemlist:

source 'http://rubygems.org' gem 'aws-s3', :require => 'aws/s3' gem 'rails', '3.0.9' gem 'aasm' gem 'bcrypt-ruby', :require => 'bcrypt' gem 'paper_trail', '~> 2' gem 'heroku' gem "paperclip", "~> 2.4" gem 'mysql2', '~> 0.2.6' gem 'haml' gem 'yaml_db' gem 'awesome_print'

anthonyalberto commented 11 years ago

Did you run bundle install ?

I can't reproduce the problem with Rails 3.2.12 or edge rails. Plus, the gem is already required in the rails console, you can just use ap directly and it'll work.

If it's still a problem, please provide more info. Thanks