diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-08 02:20:55 -0700 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-08 02:20:55 -0700 |
commit | d2726a950015d70c5b43ff4c902dfb7651c2dfc0 (patch) | |
tree | cf337ffa43914b5853b1bdd4716c37ff31e885c2 | |
parent | 206974a97c58bcde815300dbc2e766098debbb47 (diff) | |
parent | c5abd0604d826457dd3f5c49e107db7f4e943c76 (diff) | |
download | rails-d2726a950015d70c5b43ff4c902dfb7651c2dfc0.tar.gz rails-d2726a950015d70c5b43ff4c902dfb7651c2dfc0.tar.bz2 rails-d2726a950015d70c5b43ff4c902dfb7651c2dfc0.zip |
Merge pull request #5773 from trevor/patch-1
url in comments - active_support/core_ext/integer/time.rb
-rw-r--r-- | activesupport/lib/active_support/core_ext/integer/time.rb | 6 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/numeric/time.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/time.rb b/activesupport/lib/active_support/core_ext/integer/time.rb index c677400396..894b5d0696 100644 --- a/activesupport/lib/active_support/core_ext/integer/time.rb +++ b/activesupport/lib/active_support/core_ext/integer/time.rb @@ -24,9 +24,9 @@ class Integer # 1.year.to_f.from_now # # In such cases, Ruby's core - # Date[http://stdlib.rubyonrails.org/libdoc/date/rdoc/index.html] and - # Time[http://stdlib.rubyonrails.org/libdoc/time/rdoc/index.html] should be used for precision - # date and time arithmetic + # Date[http://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and + # Time[http://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision + # date and time arithmetic. def months ActiveSupport::Duration.new(self * 30.days, [[:months, self]]) end diff --git a/activesupport/lib/active_support/core_ext/numeric/time.rb b/activesupport/lib/active_support/core_ext/numeric/time.rb index 58a03d508e..822f766af7 100644 --- a/activesupport/lib/active_support/core_ext/numeric/time.rb +++ b/activesupport/lib/active_support/core_ext/numeric/time.rb @@ -28,9 +28,9 @@ class Numeric # 1.year.to_f.from_now # # In such cases, Ruby's core - # Date[http://stdlib.rubyonrails.org/libdoc/date/rdoc/index.html] and - # Time[http://stdlib.rubyonrails.org/libdoc/time/rdoc/index.html] should be used for precision - # date and time arithmetic + # Date[http://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and + # Time[http://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision + # date and time arithmetic. def seconds ActiveSupport::Duration.new(self, [[:seconds, self]]) end |