Skip to content

Instantly share code, notes, and snippets.

@wolfieorama
Created April 14, 2016 09:32
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 wolfieorama/a4caabee3e927720d90bb9f0f9f26651 to your computer and use it in GitHub Desktop.
Save wolfieorama/a4caabee3e927720d90bb9f0f9f26651 to your computer and use it in GitHub Desktop.
def prev
JobQueue.where(["queue_owner = ? and queue_name = ? and id < ?", queue_owner, queue_name, id]).last
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment