Skip to content

Commit

Permalink
Use send in Time marshal extensions since the methods are now private
Browse files Browse the repository at this point in the history
See ruby/ruby@9c1b316

All Active Support tests pass in 2.0.0preview2 after this change.
Closes #8409
  • Loading branch information
carlosantoniodasilva committed Dec 4, 2012
1 parent 33ab32d commit 1a5caf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/core_ext/time/marshal.rb
Expand Up @@ -20,7 +20,7 @@ def _load(marshaled_time)
def _dump(*args) def _dump(*args)
obj = dup obj = dup
obj.instance_variable_set('@marshal_with_utc_coercion', utc?) 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 end
end end
Expand Down Expand Up @@ -51,7 +51,7 @@ def _load(marshaled_time)
def _dump(*args) def _dump(*args)
obj = dup obj = dup
obj.instance_variable_set('@_zone', zone) obj.instance_variable_set('@_zone', zone)
obj._dump_without_zone(*args) obj.send :_dump_without_zone, *args
end end
end end
end end

0 comments on commit 1a5caf1

Please sign in to comment.