From 1afdbbeb27e3bda6b7db02ea4b71ad1b170d6ecc Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Mon, 30 May 2016 15:58:53 +0200 Subject: 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. --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 # ActiveRecord::Base. Since the association adds a method with that name to # its model, using an association with the same name as one provided by ActiveRecord::Base will override the method inherited through ActiveRecord::Base 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 ActiveRecord::Base instance methods. -- cgit v1.2.3