AR Relation docs

41 views
Skip to first unread message

Oscar Del Ben

unread,
Jul 5, 2012, 9:49:19 PM7/5/12
to rubyonra...@googlegroups.com
Hi guys,

I'm covering this file, and I've noticed that the bang version of the methods are not prefixed by no-doc.

Example:

includes!
preload!
join!

etc.

Should I go ahead and add no-docs to those?


-- 
Oscar Del Ben

Ryan Bigg

unread,
Jul 6, 2012, 6:41:03 PM7/6/12
to rubyonra...@googlegroups.com
Depends. How are they different to their non-bang variants?

--
Ryan Bigg

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-do...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-docs?hl=en.

Oscar Del Ben

unread,
Jul 6, 2012, 6:44:48 PM7/6/12
to rubyonra...@googlegroups.com
in general, the non bang version allows for empty arguments, and calls the bang version if everything looks good.

Example:


-- 
Oscar Del Ben
Sent with Sparrow

Ryan Bigg

unread,
Jul 6, 2012, 6:45:01 PM7/6/12
to rubyonra...@googlegroups.com
In that case then, yeah I would nodoc the bang versions

--
Ryan Bigg

Oscar Del Ben

unread,
Jul 6, 2012, 6:47:12 PM7/6/12
to rubyonra...@googlegroups.com
will do

-- 
Oscar Del Ben
Sent with Sparrow

Reply all
Reply to author
Forward
0 new messages