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
Models with custom table names do not show in Rails Admin
Example I have a model in a file cast.rb like this:
class Cast < ApplicationRecord
self.table_name = "cast"
end
The table name is cast not casts since cast is uncountable. This model is not showing in Rails Admin even though I have the table name set in the model(self.table_name = "cast"), it shows only if I rename the table itself to casts.
Is there any configuration option that I should use to allow this to work?
The text was updated successfully, but these errors were encountered:
Models with custom table names do not show in Rails Admin
Example I have a model in a file cast.rb like this:
The table name is cast not casts since cast is uncountable. This model is not showing in Rails Admin even though I have the table name set in the model(self.table_name = "cast"), it shows only if I rename the table itself to casts.
Is there any configuration option that I should use to allow this to work?
The text was updated successfully, but these errors were encountered: