aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-01-02 22:03:42 -0800
committerAman Gupta <aman@tmm1.net>2015-01-02 22:03:42 -0800
commit3a30b12c774dfaa72acfe520e823374131631ea9 (patch)
treeb1d1c4b135c4064e5d44b9d7b0a9d7d862b0d9e9 /activesupport
parent2f558088acb2ab65ed4dcd87a8ef42d1b26a8035 (diff)
downloadrails-3a30b12c774dfaa72acfe520e823374131631ea9.tar.gz
rails-3a30b12c774dfaa72acfe520e823374131631ea9.tar.bz2
rails-3a30b12c774dfaa72acfe520e823374131631ea9.zip
use self.method syntax to resolve circular argument issues
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb2
1 files changed, 1 insertions, 1 deletions
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?