Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created July 23, 2008 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkeepers/1885 to your computer and use it in GitHub Desktop.
Save bkeepers/1885 to your computer and use it in GitHub Desktop.
def slow_each(options, &block)
0.step(count(options), options[:limit]) do |offset|
find(:all, options.merge(:offset => offset)).each(&block)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment