Noriaki Takamizawa
Noriaki Takamizawa

Reputation: 1049

Ransack with Ruby 2.5

I'm trying to use Ransack on RoR app. https://github.com/activerecord-hackery/ransack

Unfortunately latest ransack only support ruby 2.6+. Mine is 2.5.8. So what should I do? Any available version is there on Ransack?

Upvotes: 0

Views: 176

Answers (1)

Tom Lord
Tom Lord

Reputation: 28305

You can use an older version, namely 2.4.1.

If you look on rubygems.org, you can quickly see the minimum required ruby version for each version of the gem:

However, you shouldn't even ordinarily need to check this manually!! If you run bundler update ransack on a project, it will automatically fetch the latest compatible version of the gem, given all your other dependencies.

Upvotes: 1

Related Questions