Re: [Rails] Re: Autload thread safety in Ruby 2.0?

2013-06-16 Thread josh.jor...@gmail.com
Thanks, Rick. I've asked the question on that thread as well. It seems to suffer from the same issue: its just a claim that appears to conflict with Matz's implication from the same post I included in my original question. On Sun, Jun 16, 2013 at 9:14 AM, Rick wrote: > Here's a link that's a li

Re: [Rails] Re: AR: freezing PG Array

2014-03-14 Thread josh.jor...@gmail.com
I don't see why that's true. It would be simple enough to use a proper OO solution, such as writing a class that has the same interface as an Array but tracks changes, or to extend Array instances with a module that does the same. On Mar 14, 2014 9:10 AM, "Jan Brdo" wrote: > That would mean monke

Re: [Rails] Re: Relation count returns syntax error in Rails 4.1.X

2014-06-01 Thread josh.jor...@gmail.com
If you're calling count, it doesn't matter what select values you've passed, since you're asking ActiveRecord to return an aggregate, not any column values. On Sun, Jun 1, 2014 at 9:19 AM, Rodrigo Lueneberg wrote: > Josh, > > If I remove the call to "select" how to specify which columns to sele

Re: [Rails] Re: Re: Relation count returns syntax error in Rails 4.1.X

2014-06-01 Thread josh.jor...@gmail.com
ation just to do a count. > > In this scenario you would need two relations, one for the selected > columns and another only for count. I would prefer do it using raw SQL, > don't you agree? > > Rod > > josh.jor...@gmail.com wrote in post #1148444: > > If you'