Ransack: cannot load such file -- polyamorous/activerecord_5.2.2_ruby_2/join_association

Created on 4 Dec 2018  路  9Comments  路  Source: activerecord-hackery/ransack

rails 5.2.2
ransack 2.1.0

Today I just made a bundle update and rails upgraded to 5.2.2, from there on, I tried to issue a

rails g migration AddLinkedinAuthKeys

And it presented me with that error:

cannot load such file -- polyamorous/activerecord_5.2.2_ruby_2/join_association

Most helpful comment

If you don't want to rollback rails, you can unblock yourself with:

gem 'ransack', github: 'activerecord-hackery/ransack', branch: '8daa87a0389d380f7c9fd7ea9cb5bda634d5dc7d'

All 9 comments

Same issue, looks like it was fixed 5 days ago already. The fix works for me.
Can we release a new version? :)

I think this is fixed by https://github.com/activerecord-hackery/ransack/pull/985. We just need to wait for a release to occur. The thread there indicates a release should be coming out soon, perhaps tomorrow.

If you don't want to rollback rails, you can unblock yourself with:

gem 'ransack', github: 'activerecord-hackery/ransack', branch: '8daa87a0389d380f7c9fd7ea9cb5bda634d5dc7d'

Version 2.1.1 is out and it works with Rails 5.2.2

Thank you very much, already tested, it works for me.

Yep, for me as well. Thanks a bunch @GBH 馃憤

You're welcome guys.

Thanks @gregmolnar !

Version 2.1.1 is out and it works with Rails 5.2.2

this version upgrade also helps fix following issues:

NameError:
  uninitialized constant Controller

and

NameError:
  uninitialized constant Shoulda
# ./spec/spec_helper.rb:201:in `<top (required)>'

Adding it here to save someone's time though they are not related to this gem.

Thanks for the fix.

Was this page helpful?
0 / 5 - 0 ratings