Permalink
Browse files

Use send in Time marshal extensions since the methods are now private

See ruby/ruby@9c1b316

All Active Support tests pass in 2.0.0preview2 after this change.
Closes #8409
  • Loading branch information...
1 parent 33ab32d commit 1a5caf180e22970a5ca927e9315a1af9f6bf6495 @carlosantoniodasilva carlosantoniodasilva committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/time/marshal.rb
@@ -20,7 +20,7 @@ def _load(marshaled_time)
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 @@ def _load(marshaled_time)
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

0 comments on commit 1a5caf1

Please sign in to comment.