Skip to content
Browse files

JRuby doesn't have UnboundMethod#name

  • Loading branch information...
1 parent d8bdc4e commit fe34d10f0c6a22c6a87a6fef5f3ebce6c7af70c9 @jeremy jeremy committed Mar 29, 2009
View
2 activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb
@@ -3,7 +3,7 @@
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

0 comments on commit fe34d10

Please sign in to comment.
Something went wrong with that request. Please try again.