From 3a30b12c774dfaa72acfe520e823374131631ea9 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Fri, 2 Jan 2015 22:03:42 -0800 Subject: use self.method syntax to resolve circular argument issues --- activesupport/lib/active_support/values/time_zone.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb index 618c93125c..01aea0984b 100644 --- a/activesupport/lib/active_support/values/time_zone.rb +++ b/activesupport/lib/active_support/values/time_zone.rb @@ -267,7 +267,7 @@ module ActiveSupport # # Time.zone.now # => Fri, 31 Dec 1999 14:00:00 HST -10:00 # Time.zone.parse('22:30:00') # => Fri, 31 Dec 1999 22:30:00 HST -10:00 - def parse(str, now=now()) + def parse(str, now=self.now) parts = Date._parse(str, false) return if parts.empty? -- cgit v1.2.3