Skip to content

Commit dae24cc

Browse files
committed
Add missing require
The method DateAndTime::Calculations#end_of_month invokes ::Time.days_in_month(month, year) We need to cherry-pick the file that defines it to ensure the extension is available here.
1 parent b89f95d commit dae24cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activesupport/lib/active_support/core_ext/date_and_time/calculations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "active_support/core_ext/object/try"
4+
require "active_support/core_ext/time/calculations"
45
require "active_support/core_ext/date_time/conversions"
56

67
module DateAndTime

0 commit comments

Comments
 (0)