diff options
author | Kathleen McMahon <resource11@users.noreply.github.com> | 2015-11-09 15:18:02 -0500 |
---|---|---|
committer | resource11 <mcmahon@resource11.com> | 2016-03-18 11:23:37 -0400 |
commit | 79f2f0b3cfd455a3cda98f8914a229ef0664dd3f (patch) | |
tree | fb9b54dc83d2ce7fc62195044ee206520b2c3966 /activerecord/lib | |
parent | 25673f47b607528d12b0f4d1bace30b2c41a97fa (diff) | |
download | rails-79f2f0b3cfd455a3cda98f8914a229ef0664dd3f.tar.gz rails-79f2f0b3cfd455a3cda98f8914a229ef0664dd3f.tar.bz2 rails-79f2f0b3cfd455a3cda98f8914a229ef0664dd3f.zip |
Issue 22240: adds link to list of instance methods [ci skip]
Update associations.rb
Update associations.rb
updates link to instance methods [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index b806a2f832..ef35d80523 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -300,10 +300,10 @@ module ActiveRecord # # === A word of warning # - # Don't create associations that have the same name as instance methods of - # ActiveRecord::Base. Since the association adds a method with that name to - # its model, it will override the inherited method and break things. - # For instance, +attributes+ and +connection+ would be bad choices for association names. + # Don't create associations that have the same name as [instance methods](http://api.rubyonrails.org/classes/ActiveRecord/Core.html) 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. # # == Auto-generated methods # See also Instance Public methods below for more details. |