{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/cc47c141e10e476f6a605707d3614733?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cc47c141e10e476f6a605707d3614733","url":"https://api.github.com/users/konstantin-dzreyev","login":"konstantin-dzreyev","id":52270},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-28T22:42:25Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/michaeldv/awesome_print/issues/57","body":"Hi,\r\n\r\nIt seems there is an error with printing ActiveRecord objects (rails 2.3.5):\r\n\r\nArgumentError: wrong number of arguments (1 for 0)\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `red'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `send'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `colorize'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:53:in `awesome_self'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:98:in `awesome_hash'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:286:in `indented'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:97:in `awesome_hash'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:96:in `map'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:96:in `awesome_hash'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:25:in `send'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:25:in `format'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'\r\n... 5 levels...\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:52:in `awesome_self'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:140:in `awesome_object'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:286:in `indented'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:139:in `awesome_object'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:130:in `map'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:130:in `awesome_object'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:52:in `awesome_self'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/core_ext/kernel.rb:10:in `ai'\r\n\tfrom /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/core_ext/kernel.rb:15:in `ap'\r\n","html_url":"https://github.com/michaeldv/awesome_print/issues/57","number":57,"title":"printing ActiveRecord object issue","id":2084598,"created_at":"2011-10-28T22:42:25Z"},"action":"opened"}