mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #1117 from joshk/as_numeric_time
Add some missing requires for AS core_ext/numeric/time. Closes #1038
This commit is contained in:
commit
9968b95b60
2 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
require 'active_support/duration'
|
require 'active_support/duration'
|
||||||
|
require 'active_support/core_ext/time/calculations'
|
||||||
|
require 'active_support/core_ext/time/acts_like'
|
||||||
|
|
||||||
class Numeric
|
class Numeric
|
||||||
# Enables the use of time calculations and declarations, like 45.minutes + 2.hours + 4.years.
|
# Enables the use of time calculations and declarations, like 45.minutes + 2.hours + 4.years.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
require 'active_support/duration'
|
require 'active_support/duration'
|
||||||
|
require 'active_support/core_ext/time/zones'
|
||||||
|
|
||||||
class Time
|
class Time
|
||||||
COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
||||||
|
|
Loading…
Reference in a new issue