diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-01 18:23:08 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-01 18:23:08 +0000 |
commit | 2db4ec9a58f841e8f380d9b18f27b58bff31a339 (patch) | |
tree | 16eaf9f5afc4a742dae80e395cb628657aec5e4d /activerecord/lib | |
parent | 898d838c7d68bf70ad00996ad5c03ada2474764c (diff) | |
download | rails-2db4ec9a58f841e8f380d9b18f27b58bff31a339.tar.gz rails-2db4ec9a58f841e8f380d9b18f27b58bff31a339.tar.bz2 rails-2db4ec9a58f841e8f380d9b18f27b58bff31a339.zip |
Reword the docs for association_foreign_key
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 864962eb52..3f2b5d726e 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1164,12 +1164,11 @@ module ActiveRecord # <b>WARNING:</b> If you're overwriting the table name of either class, the +table_name+ method # MUST be declared underneath any +has_and_belongs_to_many+ declaration in order to work. # [:foreign_key] - # Specify the foreign key used for the association (on "this side" of association). - # By default this is guessed to be the name of this class in lower-case and "_id" suffixed. - # So a Person class that makes a +has_and_belongs_to_many+ association to Project - # will use "person_id" as the default <tt>:foreign_key</tt>. + # Specify the foreign key used for the association. By default this is guessed to be the name + # of this class in lower-case and "_id" suffixed. So a Person class that makes a +has_and_belongs_to_many+ association + # to Project will use "person_id" as the default <tt>:foreign_key</tt>. # [:association_foreign_key] - # Specify the association foreign key used for the association (on the "other side" of association). + # Specify the foreign key used for the association on the receiving side of the association. # By default this is guessed to be the name of the associated class in lower-case and "_id" suffixed. # So if a Person class makes a +has_and_belongs_to_many+ association to Project, # the association will use "project_id" as the default <tt>:association_foreign_key</tt>. |