-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
Suppose I have a MongoDB collection called tests. The natural way to map to documents in that collection with MongoDB would be
class Test
include Mongoid::Document
...
end
but this is impossible, because Test is a reserved word in Rails. How do I create a class with a different name that Mongoid will map to tests?