Skip to content

Instantly share code, notes, and snippets.

@fbernier
Created July 18, 2012 15:15
Show Gist options
  • Save fbernier/3136798 to your computer and use it in GitHub Desktop.
Save fbernier/3136798 to your computer and use it in GitHub Desktop.
difference in execution
trans = Transaction.filter(~{:somecolumn => nil}, :send_time => nil)
trans.each do |t|
# do something
end
trans = Transaction.filter(~{:somecolumn => nil}, :send_time => nil)
trans.all do |t|
# do something
end
rub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment