ActiveSupport::Deprecation.warn 'You have required `active_support/core_ext/object/to_json`. ' \
  'This file will be removed in Rails 4.2. You should require `active_support/core_ext/object/json` ' \
  'instead.'

require 'active_support/core_ext/object/json'