aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2015-02-14 15:35:47 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2015-02-14 15:35:47 +0000
commit95546d493525a79f2da542c7e3fcff6cd5acca73 (patch)
tree90bd2c1e9be0a1f3767da72d60bf3b519333c791 /activerecord
parent698afe1173c6501d29b98389204d3ac70aaea910 (diff)
parent773dd2598d6158a553a33ab638795c128fc1cc8d (diff)
downloadrails-95546d493525a79f2da542c7e3fcff6cd5acca73.tar.gz
rails-95546d493525a79f2da542c7e3fcff6cd5acca73.tar.bz2
rails-95546d493525a79f2da542c7e3fcff6cd5acca73.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 5a3b4f0c40..260ef71e64 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1438,7 +1438,7 @@ module ActiveRecord
# when you access the associated object.
#
# Scope examples:
- # belongs_to :user, -> { where(id: 2) }
+ # belongs_to :firm, -> { where(id: 2) }
# belongs_to :user, -> { joins(:friends) }
# belongs_to :level, ->(level) { where("game_level > ?", level.current) }
#
@@ -1516,9 +1516,9 @@ module ActiveRecord
# belongs_to :attachable, polymorphic: true
# belongs_to :project, readonly: true
# belongs_to :post, counter_cache: true
- # belongs_to :company, touch: true
+ # belongs_to :comment, touch: true
# belongs_to :company, touch: :employees_last_updated_at
- # belongs_to :company, required: true
+ # belongs_to :user, required: true
def belongs_to(name, scope = nil, options = {})
reflection = Builder::BelongsTo.build(self, name, scope, options)
Reflection.add_reflection self, name, reflection