I'm very new to Ruby/Rails and I'm looking for help with MongoMapper
We currently have MongoMapper in our ruby app, however, I'm trying to isolate CRUD operations on a couple of collections to go through API calls instead of directly through MongoMapper. But in the same time I don't want these model objects to stop inheriting MongoMapper so that all the modeling and non DB operations continue without trouble.
In my limited Ruby knowledge I've decided to create a module that has the methods that I'd like to override and add that as a late include in each of the collection model class that I want to exclude.
However, it doesn't seem to be coming to my breakpoints. I did some tracing and I've found that the .find(...) calls are taking a different route that the querying.rb.
Based on that I've concluded that my research to find all the query points in MongoMapper was not conclusive. Can you help me identify or enumerate all the classes/modules in MongoMapper that has methods that perform mongo CRUD operations?
Thanks for reading.