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

should handle namespaced in field/associative #1125

Closed
namiwang opened this issue Mar 22, 2018 · 2 comments
Closed

should handle namespaced in field/associative #1125

namiwang opened this issue Mar 22, 2018 · 2 comments
Labels
bug breakages in functionality that is implemented namespacing models with a namespace

Comments

@namiwang
Copy link

namiwang commented Mar 22, 2018

Say we've got some models like

module OneModule
  class OneModel < ApplicationRecord
    belongs_to :another_model, class_name: 'AnotherModel', foreign_id: 'another_model_id'
  end
end

While Rails is ok about it, administrate needs class_name to be OneModule::AnotherModel instead of just AnotherModel to work properly.

Guess the related methods is associated_class_name in field/associative.

@nickcharlton
Copy link
Member

Do you think you'd be able to contribute a PR for this?

@nickcharlton nickcharlton added bug breakages in functionality that is implemented namespacing models with a namespace labels Jan 2, 2020
@pablobm
Copy link
Collaborator

pablobm commented Apr 4, 2023

I think this should be irrelevant now that we have automatic associations (#1633). If someone is having still this issue, please let us know and we can reopen.

@pablobm pablobm closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug breakages in functionality that is implemented namespacing models with a namespace
Projects
None yet
Development

No branches or pull requests

3 participants