Created
October 14, 2010 14:32
-
-
Save seanhandley/626253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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