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
I have a model in my application named Apartment which is obviously creating a conflict. For example when I have "Apartment.all.count" in my code I get this error:
undefined method 'all' for Apartment:Module
Is there some way to rename the Apartment gem or place it in its own namespace? The app I'm working on is a legacy app and the Apartment model is used in too many places for a renaming of that model to work.
The text was updated successfully, but these errors were encountered:
I have a model in my application named Apartment which is obviously creating a conflict. For example when I have "Apartment.all.count" in my code I get this error:
undefined method 'all' for Apartment:Module
Is there some way to rename the Apartment gem or place it in its own namespace? The app I'm working on is a legacy app and the Apartment model is used in too many places for a renaming of that model to work.
The text was updated successfully, but these errors were encountered: