Ben Johnson
Software Engineer · Not a member
Ben Johnson's latest activity
Tuesday, March 08 2011
-
Ben Johnson created the ticket at 3:47 AMI found a rather serious problem with named scopes in ActiveRecord 2.3.X. After analyzing my logs I noticed that chaining named scopes actually executes extra u...
Thursday, May 20 2010
-
Ben Johnson created the ticket at 3:01 PMThis is more of an idea I wanted to toss up, if people like it I'll work on a commit. But find_each and find_in_batches are both in ActiveRecord. Wouldn't it ma...
Thursday, June 25 2009
-
Ben Johnson commented at 6:05 AMI am also getting this error, the patch listed on https://rails.lighthouseapp.com/projects/8994/tickets/2784-private-... worked fine for me.
Sunday, January 18 2009
-
Ben Johnson commented at 6:42 AMI understand that, but I failed to specify the main reason this should be included. This can easily happen when chaining named scopes, since each scope can spec...
Wednesday, October 15 2008
-
Ben Johnson created the ticket at 8:45 PMTake this example:
User.all(:conditions => "orders.total > 100 and line_items.state = 'open'", :joins => {:orders => :line_items}, :include => :orders)You ge...
Friday, September 12 2008
-
Ben Johnson created the ticket at 11:24 PMI don't know if this is helpful or not, but I figured I would share it.
I am writing a library that uses ActiveSupport. I have been using the Hash.assert_valid_...
Tuesday, September 09 2008
-
Ben Johnson created the ticket at 7:43 PMThis is really a suggestion, maybe I can plant a seed and it will grow into something. I'm sure I'm not the first person to mention this either.
With jQuery in ...
Thursday, June 05 2008
-
Ben Johnson created the ticket at 10:12 PMIf I do the following:
class A < ActiveRecord::Base
self.skip_time_zone_conversion_for_attributes = [:field_a]
end
class B < ActiveRecord::Base
self.skip_...