hi guys,
I added methods to get the parent model and the root model and I make both "collection" and "collection_name" thread-safe.
please review it and let me know the needed changes.
basically I want to change the collection name in every request on a rails app. (same model, different collection), for example "posts.versions" "pages.versions". Version would be the model and the collection name would change depending of the versionable model. I am planning to use the same for soft deletes too