Why “require ‘rational'” causes “cannot load such file — rational” error in rails evn, and causes no error in irb env(just return false)
I’ve used a gem: mini_exiftool-2.11.0
in my rails app with bundler. And it manually require 'rational'
in a file. Maybe it is for early ruby version when rational
needed to be required for use. Now we know it is a part of the core. But it causes a loadError:
Moving from Git to RubyGems in Gemfile
Background: I am attempting to modernise a legacy Rails app. I am not a full-time developer, nor am I the app’s maintainer. All CI tests currently pass with 79% of coverage.