We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b063f24 commit e00a5b9Copy full SHA for e00a5b9
config/initializers/libraries.rb
@@ -9,4 +9,4 @@
9
require 'lib/ext/active_support_cache_object'
10
require 'lib/ext/object_logit'
11
require 'lib/ext/active_record_quoting_fix'
12
-
+require 'lib/ext/time_today'
lib/ext/time_today.rb
@@ -0,0 +1,8 @@
1
+# Time.today was eliminated in RubyGems 1.3.2. This monkey patch puts it back.
2
+# https://rubyforge.org/tracker/index.php?func=detail&aid=25564&group_id=126&atid=575
3
+
4
+class Time
5
+ def self.today
6
+ return Date.today.to_time
7
+ end
8
+end
0 commit comments