Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Models with custom table names not showing in Rails Admin #3040

Open
khashish opened this issue Jul 4, 2018 · 0 comments
Open

Models with custom table names not showing in Rails Admin #3040

khashish opened this issue Jul 4, 2018 · 0 comments

Comments

@khashish
Copy link

khashish commented Jul 4, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant