diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2011-12-22 18:53:04 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2011-12-22 18:53:07 +0300 |
commit | 9d97173c5a3f023e50f85503c120fbad9d0b26d2 (patch) | |
tree | 3a48154787950194604b6da2714f8a32ec913b04 /activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb | |
parent | fa5adfb1e884bf21a7071ade634a820e37ac4db4 (diff) | |
download | rails-9d97173c5a3f023e50f85503c120fbad9d0b26d2.tar.gz rails-9d97173c5a3f023e50f85503c120fbad9d0b26d2.tar.bz2 rails-9d97173c5a3f023e50f85503c120fbad9d0b26d2.zip |
no more need to make Time#to_date and Time#to_datetime public
they are public in actual 1.9 ruby version (tested at least in 1.9.2-p180)
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb | 10 |
1 files changed, 0 insertions, 10 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 deleted file mode 100644 index e1878d3c20..0000000000 --- a/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb +++ /dev/null @@ -1,10 +0,0 @@ -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 private_instance_methods.include?(method) || private_instance_methods.include?(method.to_sym) - public method - end - end -end |