require active_support before active_support/core_ext

fixes ActiveSupport::Autoload error, and is the correct way to include ActiveSupport according to this thread: https://github.com/rails/rails/issues/14664