You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We run a large app where 90% of our app is not using Apartment. We really only use it for two tables. This makes config.excluded_models not work so well for us as ever new model we add we have to go and manually exclude it. It would be much simpler if we could do config.included_models instead. Right now we run code like this:
But it's not ideal and error prone. I was wondering if there are any plans to support config.included_models or if someone familiar with the code base could point me in a direction for starting that work?
The text was updated successfully, but these errors were encountered:
We use this popular gem Rolify (https://github.com/RolifyCommunity/rolify) - which uses an internal table (for some internal join queries), that is not manifested as an ActiveRecord model, and thus there's no way to manifest it as an excluded_models.
An included_models option will make this gem more compatible with other gems.
We run a large app where 90% of our app is not using Apartment. We really only use it for two tables. This makes config.excluded_models not work so well for us as ever new model we add we have to go and manually exclude it. It would be much simpler if we could do
config.included_models
instead. Right now we run code like this:But it's not ideal and error prone. I was wondering if there are any plans to support config.included_models or if someone familiar with the code base could point me in a direction for starting that work?
The text was updated successfully, but these errors were encountered: