Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created October 14, 2010 14:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/626253 to your computer and use it in GitHub Desktop.
Save seanhandley/626253 to your computer and use it in GitHub Desktop.
class Item < ActiveRecord::Base
def self.find_the_id(id)
items = Item.find_by_sql("call find_the_id(#{id})")
items[0]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment