aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-12-31 17:24:29 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-12-31 17:24:29 +0100
commit89a9ae8925211d850125751547949be3f04d2bbb (patch)
tree53de3b8fc5c7989cedc598a4f06536bc0aa01e31
parent2403b4a03f23a20f9022e66a150ea9784e6d7dce (diff)
downloadrails-89a9ae8925211d850125751547949be3f04d2bbb.tar.gz
rails-89a9ae8925211d850125751547949be3f04d2bbb.tar.bz2
rails-89a9ae8925211d850125751547949be3f04d2bbb.zip
[ci skip] Retouch some association wording.
Trim some needless words off the lines and format the code sample like we'd write in the Rails source.
-rw-r--r--activerecord/lib/active_record/associations.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index fb6b41415e..1db5fc0dd1 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -369,13 +369,14 @@ module ActiveRecord
#
# === Overriding generated methods
#
- # Association methods are generated in a module that is included into the model class,
- # which allows you to easily override with your own methods and call the original
- # generated method with +super+. For example:
+ # Association methods are generated in a module included into the model
+ # class, making overrides easy. The original generated method can thus be
+ # called with +super+:
#
# class Car < ActiveRecord::Base
# belongs_to :owner
# belongs_to :old_owner
+ #
# def owner=(new_owner)
# self.old_owner = self.owner
# super