Skip to content

Instantly share code, notes, and snippets.

@rafaelss
Created September 16, 2009 12:57
Show Gist options
  • Save rafaelss/188028 to your computer and use it in GitHub Desktop.
Save rafaelss/188028 to your computer and use it in GitHub Desktop.
# instead
@object_1.reload
@object_2.reload
@object_3.reload
@object_4.reload
# use
[@object_1, @object_2, @object_3, @object_4].each(&:reload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment