mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Require time before monkey-patching it
Same as #12710 but for the time module this time. This time it should fix the Active Model test suite in isolation avoiding a TypeError to be raised about the superclass of the DateTime object.
This commit is contained in:
parent
9d6d07ddf4
commit
e3d775f00a
2 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# Hack to load json gem first so we can overwrite its to_json.
|
||||
require 'json'
|
||||
require 'bigdecimal'
|
||||
require 'time'
|
||||
|
||||
# The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting
|
||||
# their default behavior. That said, we need to define the basic to_json method in all of them,
|
||||
|
|
|
@ -7,7 +7,6 @@ require 'active_support/core_ext/big_decimal/conversions' # for #to_s
|
|||
require 'active_support/core_ext/hash/except'
|
||||
require 'active_support/core_ext/hash/slice'
|
||||
require 'active_support/core_ext/object/instance_variables'
|
||||
require 'time'
|
||||
require 'active_support/core_ext/time/conversions'
|
||||
require 'active_support/core_ext/date_time/conversions'
|
||||
require 'active_support/core_ext/date/conversions'
|
||||
|
|
Loading…
Reference in a new issue