This project is archived and is in readonly mode.
Documentation for belongs_to incorrectly advertises Post#author?
Reported by Scott Woods | August 15th, 2009 @ 02:23 PM
In the example section of the documentation for belongs_to, it states that if Post belongs_to :author, then we will get the method Post#author?, which is not true -- no such method is added (the user should probably use post.author.present? or post.author.nil? instead).
The attached patch removes that line from the documentation.
Comments and changes to this ticket
-
Ryan Bigg October 27th, 2009 @ 10:16 AM
Thanks for your ticket Scott,
I'm not a core team member but I do have access to the documentation side of things and I've removed this line in this commit: http://github.com/lifo/docrails/commit/d84106c5b7ca2a5ac7e2b90f6b08...
-
Rizwan Reza March 26th, 2010 @ 09:10 AM
- State changed from new to committed
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 3791 ActiveRecord::Base.execute_callstack_for_multiparameter_attributes doesn't appear to handle serialized columns This line inserted after the call to column_for_attribute...