Skip to content

Instantly share code, notes, and snippets.

@joncode
Created March 16, 2013 21:46
Show Gist options
  • Select an option

  • Save joncode/5178468 to your computer and use it in GitHub Desktop.

Select an option

Save joncode/5178468 to your computer and use it in GitHub Desktop.
Removing the ruby return values from calls - good for avoiding the data dump in console
You can either put
gs = Gift.all;
or
gs = Gift.all; nil
the second one is a little better as it terminates the method , the first one starts a block like behavior in the console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment