Skip to content

Commit f6cace4

Browse files
committed
Use Ruby's official documentation
1 parent c10eb93 commit f6cace4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

activerecord/README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ A short rundown of some of the major features:
131131
SQLite3[https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html].
132132

133133

134-
* Logging support for Log4r[https://github.com/colbygk/log4r] and Logger[https://ruby-doc.org/stdlib/libdoc/logger/rdoc/].
134+
* Logging support for Log4r[https://github.com/colbygk/log4r] and Logger[https://docs.ruby-lang.org/en/master/Logger.html].
135135

136136
ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDOUT)
137137
ActiveRecord::Base.logger = Log4r::Logger.new('Application Log')

activesupport/lib/active_support/duration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ def to_s
371371
# 1.year.to_i # => 31556952
372372
#
373373
# In such cases, Ruby's core
374-
# Date[https://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and
375-
# Time[https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision
374+
# Date[https://docs.ruby-lang.org/en/master/Date.html] and
375+
# Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision
376376
# date and time arithmetic.
377377
def to_i
378378
@value.to_i

guides/source/active_record_postgresql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ irb> Event.where("payload->>'kind' = ?", "user_renamed")
170170
* [type definition](https://www.postgresql.org/docs/current/static/rangetypes.html)
171171
* [functions and operators](https://www.postgresql.org/docs/current/static/functions-range.html)
172172

173-
This type is mapped to Ruby [`Range`](https://ruby-doc.org/core-3.1.0/Range.html) objects.
173+
This type is mapped to Ruby [`Range`](https://docs.ruby-lang.org/en/master/Range.html) objects.
174174

175175
```ruby
176176
# db/migrate/20130923065404_create_events.rb
@@ -449,7 +449,7 @@ irb> user.save!
449449
* [type definition](https://www.postgresql.org/docs/current/static/datatype-net-types.html)
450450

451451
The types `inet` and `cidr` are mapped to Ruby
452-
[`IPAddr`](https://ruby-doc.org/stdlib-3.1.0/libdoc/ipaddr/rdoc/IPAddr.html)
452+
[`IPAddr`](https://docs.ruby-lang.org/en/master/IPAddr.html)
453453
objects. The `macaddr` type is mapped to normal text.
454454

455455
```ruby

0 commit comments

Comments
 (0)