Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bugfix for MongoMapper #9

Merged
1 commit merged into from

2 participants

@semaperepelitsa

Generated controller throws an exception due to wrong find method.

@negonicrac
Collaborator

Thanks

@negonicrac

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/generators/mongo_mapper.rb
View
2  lib/generators/mongo_mapper.rb
@@ -17,7 +17,7 @@ def self.all(klass)
end
def self.find(klass, params=nil)
- "#{klass}.first(#{params})"
+ "#{klass}.find(#{params})"
end
def self.build(klass, params=nil)
Something went wrong with that request. Please try again.