igorkasyanchuk / rails_db

Rails Database Viewer and SQL Query Runner
https://www.railsjazz.com/
MIT License
1.46k stars 111 forks source link

doesn't run with rails 5.2.2 #93

Closed mikecanann closed 5 years ago

mikecanann commented 5 years ago

Rails DB doesn't run with rails 5.2.2 (it was working on rails 5.2.1.1)

The error is:

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

mikecanann commented 5 years ago

Looks like the error is not inside rails_db, but in the gem ransack. Found a workaround on their issue pages:

https://github.com/activerecord-hackery/ransack/issues/987#issuecomment-444261304 And this fix is to point the ransack gem to the PR branch that has the fix in it:

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

mikecanann commented 5 years ago

Ransack version 2.1.1 (latest version, released yesterday) is out and it works with Rails 5.2.2.