Daniel Luz
Not a member
Daniel Luz's latest activity
Wednesday, December 03 2008
-
Daniel Luz created the ticket at 7:38 AMMany areas of the docs for associations talk about a
collection.exist?method, but it's actually calledexists?, as a parallel forActiveRecord::Base.exists?.H...
Monday, December 01 2008
-
Daniel Luz commented at 8:05 AMTestcase and fix in a single patch.
They were separated because at first I didn't have a solution, so I just came here to leave a report and a test case. After ...
-
- Title changed from find_last (find(:last)) affects other calls on the same scope to [PATCH] find_last (find(:last)) affects other calls on the same scope
-
- Tag changed from 2.1-stable, 2.2-stable, :order, activerecord, bug, find_last, named_scope, scope, with_scope to 2.1-stable, 2.2-stable, :order, activerecord, bug, find_last, named_scope, patch, scope, with_scope
Patch altering the way
#find_lastworks with scoped_methods.Rather than updating all elements on the stack, update just the current scope, and restore its stat...
-
Daniel Luz created the ticket at 1:26 AMUsing find(:last) within a scope leaves side effects on it, affecting all future calls within the same scope.
Pseudocode example:
Book.with_scope(:find => {:...
Monday, September 08 2008
-
Daniel Luz created the ticket at 9:16 PMI have a
gender enum('M', 'F')column on a MySQL table (MyISAM engine). When I invokerake db:schema:dump, Rails writes this column as:t.string "gender", :lim...