duncanbeevers
Developer · Not a member
duncanbeevers's latest activity
Thursday, September 17 2009
-
duncanbeevers commented at 11:48 PM+1
I think this fits best with people's expectations of how scopes should compose.
Wednesday, November 05 2008
-
duncanbeevers created the ticket at 10:02 PMIssuing a count calculation on a scope that explicitly specifies a select option does not respect that select, resulting in incorrect counts.
Saturday, August 09 2008
-
duncanbeevers created the ticket at 12:00 AMCreating a record whose underlying database store is a date-type column does not cast the value on the newly-created record to a Date.
Reading the record back ...
Monday, June 23 2008
-
duncanbeevers commented at 7:06 PMArgh! I've helped make construct_finder_sql that little bit uglier!
Tuesday, May 06 2008
-
duncanbeevers commented at 9:32 PMI think giving the method a different name is appropriate, and at a minimum the tests should be carried over.
Saturday, May 03 2008
-
duncanbeevers commented at 2:06 AMNo offense taken.
I quite like the idea of having the scope itself emit its options, and I've realy come around on using class methods as scopes. Could be us...
-
-
duncanbeevers commented at 12:49 AMThe provided patch allows for providing a method name as the scope using a symbol as the method name.
def Topic < ActiveRecord::Base named_scope :written_b...
-
duncanbeevers created the ticket at 1:53 AMWhen generating complex options hashes for named scopes, it can be difficult to test that the scopes are generated correctly. By providing insight into the ge...
Friday, May 02 2008
-
duncanbeevers commented at 11:02 PMI've been thinking about similar functionality, and thus far I've found it most flexible to simply specify composite scopes as proper methods.
def self.writte...