Frederick Cheung wrote:
> On Sep 25, 7:32�pm, Greg Willits <[email protected]> wrote:
>> Short version:
>>
>> Is there any way to override the ReadOnly behavior of AR3 when a SELECT
>> clause is specified?
> 
>  .readonly(false) ?

Dang it. How'd I miss that?

Oi. Thanks again Fred, you seem to always be the one catching my goofy 
questions.

I will say though, these sections of the Guides don't mention that 
(although I suppose I should have inferred that if true was an option, 
false was an option too).

http://guides.rubyonrails.org/active_record_querying.html#selecting-specific-fields
http://guides.rubyonrails.org/active_record_querying.html#readonly-objects

OK, so maybe we can just be explicit with every query and set 
readonly(false) or override .find somehow to always limit the SELECT 
clause until the schema can be refactored...(fades off to go 
experiment)...

-- gw

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to