I’m always adding gem 'mysql2' to the Gemfile which always seems to work, so I didn’t even notice that there is a problem.
I guess I should read more about how Ruby handles its dependencies. Just to clarify, moving the require 'mysql2' to the top isn’t enough, is it? At least in my development environment I still get an error. So, how do I install the mysql gem without adding it to the Gemfile in order to make a simple require 'mysql2' work?