This project is archived and is in readonly mode.

#2964 ✓wontfix

"find (ActiveRecord::Base)"

Reported by Julian | July 28th, 2009 @ 03:03 PM

Hey guys,
I was having a look at the the "find (ActiveRecord::Base)" action. Under paramters -> :select it is stated:

:select - By default, this is "*" as in "SELECT * FROM", but can be changed if you, for example, want to do a join but not include the joined columns. Takes a string with the SELECT SQL fragment (e.g. "id, name").

I used this method earlier today on a model together with some joins and found that the default when used on a model is "Model.*" and therefore doesn't include joined columns by default. I had to add a :select => "*" to get to these.

I think the API should state this for clarity.


PS: first ticket here -> feel free to correct me if I do something wrong

Comments and changes to this ticket

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=""></a>

People watching this ticket