Fix ActiveRecord and ActiveSupport dependencies.