Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

James Harton's latest activity

Friday, September 03 2010
5538 Bad memory leak in Arel 1.0.1? was updated in Ruby on Rails
  • James Harton
    James Harton commented at 5:21 AM

    Oh, and the other thing I have learned is that the amount of RAM is directly proportional to the number of fields each table has and is not related to the datab...

  • James Harton
    James Harton commented at 5:19 AM

    Using a minimum viable testcase (http://gist.github.com/563393) I have the following profile information:

      %   cumulative   self              self     total
     ...
  • James Harton
    James Harton commented at 3:28 AM

    Oh, and I tried to run memprof over it but it doesn't work on my 32bit MacBook Pro.

  • James Harton
    James Harton commented at 2:22 AM

    FYI, this happens just the same in Ruby 1.8.7 as well as 1.9.2, it just takes longer to fill up all the RAM.

  • James Harton
    James Harton created the ticket at 12:25 AM

    I have code that has happily been running on Rails 3.0.0.rc2 and previous betas without any issues that executes a query that should look like this:

    SELECT post...

Wednesday, September 01 2010
5490 Problem with .and()? - private method `format' called for #<Arel::Predicates:... was updated in Ruby on Rails
  • James Harton
    • Title changed from private method `format' called for #<Arel::Predicates::Equality:0x142d80c> to Problem with .and()? - private method `format' called for #<Arel::Predicates::Equality:0x142d80c>
    • Assigned user set to Aaron Patterson
    by James Harton at 10:53 PM
Monday, August 30 2010
5490 private method `format' called for #<Arel::Predicates::Equality:0x142d80c> was created in Ruby on Rails
  • James Harton
    James Harton created the ticket at 2:17 AM

    The following Arel code is throwing an error since Rails 3.0.0 stable was released (it was working on 3.0.0.rc2):

    [Development]>> ct = Connection.arel_table
    =>...
Tuesday, June 29 2010
5001 config.load_paths gone, but no deprecation warning. was updated in Ruby on Rails
  • James Harton
    James Harton commented at 10:08 PM

    You don't think that the deprecation warning should be present in every release up to the point where it is removed?

  • James Harton
    James Harton created the ticket at 5:36 AM

    Hi.

    My app has the following in config/application.rb:

    ['posts', 'clusters', 'connections'].each do |dir|
      path = File.join(Rails.root, 'app', 'models', dir)
    ...
Thursday, June 24 2010
4882 ActiveRelation bug; size() returning incorrect value with limit(). was updated in Ruby on Rails