Skip to content

Commit

Permalink
fixed ActiveRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
blindgaenger committed Sep 25, 2009
1 parent d4308f0 commit 4cbe53b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/sinatra/rest/adapters.rb
Expand Up @@ -25,10 +25,13 @@ def delete(id)
end

module ActiveRecord
module Base
def find_by_id(id)
first(id)
class Base
class << self
def find_by_id(id)
find(id)
end
end
end
end


0 comments on commit 4cbe53b

Please sign in to comment.