Skip to content

Instantly share code, notes, and snippets.

@cnruby
Created February 14, 2010 14:27
Show Gist options
  • Save cnruby/304054 to your computer and use it in GitHub Desktop.
Save cnruby/304054 to your computer and use it in GitHub Desktop.
$ # Ruby 1.8.6 + Rails 2.3.5
$ # http://www.lycom.de/past/2009/12/16/2009-12-18-hirb/
$
$
$ ./script/console
>> post = Post.find :first
>> require 'hirb'
>> Hirb.enable
>> post
>> post_short = Post.find :first, :select=>'id, title'
>> Hirb.disable
>> post_short
>> Hirb.enable
>> post_short = Post.find :all, :select=>'id, title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment