diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-29 00:24:18 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-29 00:24:18 -0700 |
commit | fe34d10f0c6a22c6a87a6fef5f3ebce6c7af70c9 (patch) | |
tree | f5fe297394aa68987ebb7ff6e17f5c3588e6abcd /activesupport | |
parent | d8bdc4ed925251596835f46a7275f30358f1c0f6 (diff) | |
download | rails-fe34d10f0c6a22c6a87a6fef5f3ebce6c7af70c9.tar.gz rails-fe34d10f0c6a22c6a87a6fef5f3ebce6c7af70c9.tar.bz2 rails-fe34d10f0c6a22c6a87a6fef5f3ebce6c7af70c9.zip |
JRuby doesn't have UnboundMethod#name
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb b/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb index fc3f297843..e1878d3c20 100644 --- a/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb +++ b/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb @@ -3,7 +3,7 @@ require 'date' class Time # Ruby 1.8-cvs and early 1.9 series define private Time#to_date %w(to_date to_datetime).each do |method| - if (m = instance_method(method) rescue nil) && private_instance_methods.include?(m.name) + if private_instance_methods.include?(method) || private_instance_methods.include?(method.to_sym) public method end end |