diff options
author | danielmbarlow <danielmbarlow@gmail.com> | 2014-05-23 11:43:12 +0200 |
---|---|---|
committer | danielmbarlow <danielmbarlow@gmail.com> | 2014-05-23 11:43:12 +0200 |
commit | 9dc8e7739c749484a70a99b0b058883f529e3a99 (patch) | |
tree | 45bf9876f15561525b41211fbf4c5f2a059b4416 /activerecord | |
parent | 0cc7f02b890d33a4e3d2a7e09f66781745e33820 (diff) | |
download | rails-9dc8e7739c749484a70a99b0b058883f529e3a99.tar.gz rails-9dc8e7739c749484a70a99b0b058883f529e3a99.tar.bz2 rails-9dc8e7739c749484a70a99b0b058883f529e3a99.zip |
Added force_reload to Auto-generated methods doc
Should make it a little easier to find the information. Also added note to look below for the definition of the generated methods.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 727ee5f65f..8d77fad2d5 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -202,12 +202,13 @@ module ActiveRecord # For instance, +attributes+ and +connection+ would be bad choices for association names. # # == Auto-generated methods + # See also Instance Public methods below for more details. # # === Singular associations (one-to-one) # | | belongs_to | # generated methods | belongs_to | :polymorphic | has_one # ----------------------------------+------------+--------------+--------- - # other | X | X | X + # other(force_reload=false) | X | X | X # other=(other) | X | X | X # build_other(attributes={}) | X | | X # create_other(attributes={}) | X | | X @@ -217,7 +218,7 @@ module ActiveRecord # | | | has_many # generated methods | habtm | has_many | :through # ----------------------------------+-------+----------+---------- - # others | X | X | X + # others(force_reload=false) | X | X | X # others=(other,other,...) | X | X | X # other_ids | X | X | X # other_ids=(id,id,...) | X | X | X |