-
Notifications
You must be signed in to change notification settings - Fork 325
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
belongs_to associations no longer respect collection_paths #513
Comments
just to be clear, this was caused by #511 |
Confirmed this is a regression 😅 Although documentation states
In the end we were actually defaulting to The ideal solution would continue to support the custom |
@keegangroth's fix can be found in release v1.1.0. Thanks everyone! |
The change in version 1.0.3 caused a regression in the handling of paths for the belongs_to association. It accepts an optional path now, but the default value for that option ignores the associated class's collection path. Simple broken example:
in order to make the same thing work with 1.0.3, you would have to write
belongs_to :company, path: "#{Company.collection_path}/:company_id"
in the admin class.One simple solution is to not provide a default value for the path argument.
The text was updated successfully, but these errors were encountered: