require_gem ‘activerecord’
A Ruby application that uses the ActiveRecord library (not a Ruby on Rails application) stopped working for me after an update of Ruby. The error message was:
TEXT
-
undefined method `require_gem’ for main:Object (NoMethodError)
The corresponding source code was:
Ruby
-
require ‘rubygems’
-
require_gem ‘activerecord’
