diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-08-25 15:04:28 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-08-25 15:04:28 +0200 |
commit | a70e6f1cb3108d7644ea87ecfa1e914b6bd1eee8 (patch) | |
tree | 0ec577367c2b3d0186acf02d42f3664a77dcda68 | |
parent | 211c31d2718165e68d4676d70eb1315c6b767dcc (diff) | |
parent | 4ec818d28c3984ec9d27c362fc8ff48af9335cde (diff) | |
download | rails-a70e6f1cb3108d7644ea87ecfa1e914b6bd1eee8.tar.gz rails-a70e6f1cb3108d7644ea87ecfa1e914b6bd1eee8.tar.bz2 rails-a70e6f1cb3108d7644ea87ecfa1e914b6bd1eee8.zip |
Merge pull request #21074 from vrybas/rdoc-fix-typo-belongs-to-inverse-of-class-name
RDoc: fix wrong model name `:inverse_of` with `:belongs_to` [ci skip]
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index a830b0e0e4..19ef37e228 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -619,10 +619,10 @@ module ActiveRecord # @tag = @post.tags.build name: "ruby" # @tag.save # - # The last line ought to save the through record (a <tt>Taggable</tt>). This will only work if the + # The last line ought to save the through record (a <tt>Tagging</tt>). This will only work if the # <tt>:inverse_of</tt> is set: # - # class Taggable < ActiveRecord::Base + # class Tagging < ActiveRecord::Base # belongs_to :post # belongs_to :tag, inverse_of: :taggings # end @@ -643,7 +643,7 @@ module ActiveRecord # You can turn off the automatic detection of inverse associations by setting # the <tt>:inverse_of</tt> option to <tt>false</tt> like so: # - # class Taggable < ActiveRecord::Base + # class Tagging < ActiveRecord::Base # belongs_to :tag, inverse_of: false # end # |