Skip to content
Browse files

ObjectID is deprecated for ObjectId

  • Loading branch information...
1 parent 72a893c commit d87e8f5f92bc1130719a9bbd720b6c630ff89a43 @jrwest committed Nov 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails/generators/mongomatic_generator.rb
View
2 lib/rails/generators/mongomatic_generator.rb
@@ -15,7 +15,7 @@ def self.all(klass)
end
def self.find(klass, params=nil)
- (params.blank?) ? "#{klass}.find" : "#{klass}.find_one(BSON::ObjectID(#{params}))"
+ (params.blank?) ? "#{klass}.find" : "#{klass}.find_one(BSON::ObjectId(#{params}))"
end
def self.build(klass, params=nil)

0 comments on commit d87e8f5

Please sign in to comment.
Something went wrong with that request. Please try again.