Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created October 14, 2010 14:32
Show Gist options
  • Select an option

  • Save seanhandley/626253 to your computer and use it in GitHub Desktop.

Select an option

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