igorkasyanchuk / rails_db

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

Ransack latest version is breaking this gem #114

Closed kapso closed 4 years ago

kapso commented 4 years ago

The latest version of ransack 2.3.2 is causing the following error -

/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rails_db-2.2.1/lib/ext/ransack_ext.rb:18:in `alias_method': undefined method `url_options' for class `Ransack::Helpers::FormHelper::SortLink' (NameError)
igorkasyanchuk commented 4 years ago

@kapso can you try to fix this issue?

kapso commented 4 years ago

Hey @igorkasyanchuk I will give this a shot over the weekend. Thanks.

saberprashant commented 4 years ago

Can anyone help me with this please :) I am getting this error:

.rvm/gems/ruby-2.6.3/gems/rails_db-2.1.0/lib/ext/ransack_ext.rb:18:in `alias_method': undefined method `url_options' for class `Ransack::Helpers::FormHelper::SortLink' (NameError)
igorkasyanchuk commented 4 years ago

guys come on, you using open-source gems and not willing to contribute and fix the issue

igorkasyanchuk commented 4 years ago

try this branch and let me know if it works https://github.com/igorkasyanchuk/rails_db/pull/115

igorkasyanchuk commented 4 years ago

version 2.3.0 has fix for the latest ransack