diff options
author | kennyj <kennyj@gmail.com> | 2012-11-02 01:34:29 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-11-02 01:34:29 +0900 |
commit | 2c4faaaedd36fd7c55bef516c71d3dd5f46a6164 (patch) | |
tree | ae372a26df3c5b96ea7b9187a0e64df9610837cf /activerecord/lib/active_record | |
parent | d20a52930aa80d7f219465d6fc414a68b16ef2a8 (diff) | |
download | rails-2c4faaaedd36fd7c55bef516c71d3dd5f46a6164.tar.gz rails-2c4faaaedd36fd7c55bef516c71d3dd5f46a6164.tar.bz2 rails-2c4faaaedd36fd7c55bef516c71d3dd5f46a6164.zip |
This is comment for singular association.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/singular_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/singular_association.rb b/activerecord/lib/active_record/associations/singular_association.rb index 32f4557c28..10238555f0 100644 --- a/activerecord/lib/active_record/associations/singular_association.rb +++ b/activerecord/lib/active_record/associations/singular_association.rb @@ -12,7 +12,7 @@ module ActiveRecord target end - # Implements the writer method, e.g. foo.items= for Foo.has_many :items + # Implements the writer method, e.g. foo.bar= for Foo.belongs_to :bar def writer(record) replace(record) end |