aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2016-05-30 15:58:53 +0200
committerRobin Dupret <robin.dupret@gmail.com>2016-05-30 15:58:53 +0200
commit1afdbbeb27e3bda6b7db02ea4b71ad1b170d6ecc (patch)
tree4cf79eabe6f3d2a9bf5f7b11b39819f3a3d2fd4d /activerecord
parent3f2e83d964fcb4cd7f7f2ed8fb2b2592ffc57647 (diff)
downloadrails-1afdbbeb27e3bda6b7db02ea4b71ad1b170d6ecc.tar.gz
rails-1afdbbeb27e3bda6b7db02ea4b71ad1b170d6ecc.tar.bz2
rails-1afdbbeb27e3bda6b7db02ea4b71ad1b170d6ecc.zip
Tiny document fixes [ci skip]
Add a missing capital letter and avoid using absolute links to the API because they may refer to out-dated documentation on the Edge site.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index ec9b073c18..3729e22e64 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -300,7 +300,7 @@ module ActiveRecord
#
# === A word of warning
#
- # Don't create associations that have the same name as [instance methods](http://api.rubyonrails.org/classes/ActiveRecord/Core.html) of
+ # Don't create associations that have the same name as {instance methods}[rdoc-ref:ActiveRecord::Core] of
# <tt>ActiveRecord::Base</tt>. Since the association adds a method with that name to
# its model, using an association with the same name as one provided by <tt>ActiveRecord::Base</tt> will override the method inherited through <tt>ActiveRecord::Base</tt> and will break things.
# For instance, +attributes+ and +connection+ would be bad choices for association names, because those names already exist in the list of <tt>ActiveRecord::Base</tt> instance methods.