Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11172 (closed enhancement: fixed)

Opened 5 months ago

Last modified 4 months ago

[PATCH] [DOC] Expanded documentation for belongs_to :counter_cache option

Reported by: jardeon Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: docs, tiny, verified
Cc:

Description

I've added a missing caveat to the belongs_to documentation on :counter_cache, namely the fact that the column in the parent object must be initialized with a default value of zero, or else the counter cache fails to work.

Attachments

active_record_counter_cache_doc_patch.diff (1.5 kB) - added by jardeon on 02/20/08 01:21:18.
Counter cache documentation update.

Change History

02/20/08 01:21:18 changed by jardeon

  • attachment active_record_counter_cache_doc_patch.diff added.

Counter cache documentation update.

03/07/08 21:00:23 changed by demisone

  • summary changed from [PATCH] expanded documentation for belongs_to :counter_cache option to [PATCH] [DOC] Expanded documentation for belongs_to :counter_cache option.

+1 from me (documentations are always more than welcome (: )

03/18/08 20:04:51 changed by kris_chambers

+1 looks good to me.

03/19/08 18:57:20 changed by jqr

  • keywords changed from docs, tiny to docs, tiny, verified.

+1

03/20/08 02:15:32 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [9064]) Docfixes (closes #11356, #11172, #10523)