Skip to content
Browse files

fixed ActiveRecord

  • Loading branch information...
1 parent d4308f0 commit 4cbe53b7f40c4226ee78fa519f9eaa5f981b4eb6 blindgaenger committed Sep 25, 2009
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/sinatra/rest/adapters.rb
View
9 lib/sinatra/rest/adapters.rb
@@ -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.
Something went wrong with that request. Please try again.