Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Rails 5.2.1.rc1 is giving 'wrong number of arguments (given 3, expected 2)' #41

Closed
jpawlyn opened this issue Jul 31, 2018 · 3 comments
Closed

Comments

@jpawlyn
Copy link

jpawlyn commented Jul 31, 2018

Hi. I am getting the error for has_many associations with a through argument. It looks as if this Rails commit added an extra argument alias_tracker to the method ActiveRecord::Associations::JoinDependency#join_constraints and this is perhaps causing the above error?

Gem version: 1.3.3
Ruby version: 2.5.0

@gregmolnar
Copy link
Member

@jpawlyn Polyamorous is no longer supported. We absorbed the needed bits into ransack. Do you have this issue in an app using ransack?

@jpawlyn
Copy link
Author

jpawlyn commented Jul 31, 2018

@gregmolnar That's right, activeadmin (1.3.0). Any suggestion what I can do to resolve the problem? Thanks

@gregmolnar
Copy link
Member

Point it to ransack master, there is a WIP PR(activerecord-hackery/ransack#938) to make it work with Rails 5.2.1, so it should be sorted soon.

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

No branches or pull requests

2 participants