Hugo Peixoto
Not a member
Hugo Peixoto's latest activity
Thursday, March 24 2011
Sunday, March 06 2011
-
Hugo Peixoto commented at 11:01 AMThe previous patch had a problem. The WHERE conditions should not be in the parent UPDATE statement, but in the subselect one. This is related to Bug #6058").
T...
-
- Tag set to arel
In postgresql, that query gets converted to the something like the following:
UPDATE things SET broken = 1 WHERE id IN (SELECT id FROM things ORDER BY freshnes...
-
Hugo Peixoto commented at 10:53 AMThe previous patch kept the where conditions on the UPDATE statement. That is not the correct behavior, as the order/limit clauses wouldn't be applied with the ...
Saturday, March 05 2011
-
Hugo Peixoto commented at 11:12 PMLooks like the bug is in ARel indeed. When a subquery is generated, all other WHERE clauses are dropped.
I attached a patch that fixes this bug and adds a test ...
Saturday, September 18 2010
-
Hugo Peixoto commented at 8:10 PMWhen you create a partial such as
_house.html.erb, it automatically passes the variable@houseto a local variable namedhouse. So, would you create a partial n...
Monday, August 30 2010
-
Hugo Peixoto commented at 5:40 AMFound the potential source of the problem.
It seems like a bad case of copy-pasta gone wrong in the haml gem; the form_for method is defined twice, and the latt...
-
Monday, August 10 2009
-
Hugo Peixoto commented at 6:57 AM-1 for the requested behaviour for skip_types. I'm with both Dan and Josh on this one.
I could add a skip_nil option to both activemodel and activesupport. Shou...