aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-03 21:45:03 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-03 22:13:48 -0200
commit1a5caf180e22970a5ca927e9315a1af9f6bf6495 (patch)
tree5aaafb095b41b1e435f2ef898b31dc4fb9246429 /activesupport/lib
parent33ab32dce8d3eee2c783e89cac3a4780401b727a (diff)
downloadrails-1a5caf180e22970a5ca927e9315a1af9f6bf6495.tar.gz
rails-1a5caf180e22970a5ca927e9315a1af9f6bf6495.tar.bz2
rails-1a5caf180e22970a5ca927e9315a1af9f6bf6495.zip
Use send in Time marshal extensions since the methods are now private
See https://github.com/ruby/ruby/commit/9c1b3161f20162dc1682d758c0e4d2fc3a74745e All Active Support tests pass in 2.0.0preview2 after this change. Closes #8409
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/time/marshal.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/marshal.rb b/activesupport/lib/active_support/core_ext/time/marshal.rb
index 457d3f5b62..ce5948d126 100644
--- a/activesupport/lib/active_support/core_ext/time/marshal.rb
+++ b/activesupport/lib/active_support/core_ext/time/marshal.rb
@@ -20,7 +20,7 @@ if !Marshal.load(Marshal.dump(Time.now.utc)).utc?
def _dump(*args)
obj = dup
obj.instance_variable_set('@marshal_with_utc_coercion', utc?)
- obj._dump_without_utc_flag(*args)
+ obj.send :_dump_without_utc_flag, *args
end
end
end
@@ -51,7 +51,7 @@ if Time.local(2010).zone != Marshal.load(Marshal.dump(Time.local(2010))).zone
def _dump(*args)
obj = dup
obj.instance_variable_set('@_zone', zone)
- obj._dump_without_zone(*args)
+ obj.send :_dump_without_zone, *args
end
end
end