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 Le Cuirot's latest activity

Thursday, March 26 2009
2348 Eager loading does not respect default_scope was created in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot created the ticket at 2:46 PM

    Yet another problem with default_scope, I'm afraid, and quite a serious one. It's being ignored during eager loading.

    
    class Tagging < ActiveRecord::Base
      b...
Wednesday, March 25 2009
2181 Default Scope with conditions on create was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 4:22 PM

    Sorry, the test wasn't quite right. Wasn't thinking straight.

  • James Le Cuirot
    James Le Cuirot commented at 4:05 PM

    Regarding the example posted by David, this is happening because default_scope should be checking whether :conditions is a hash. Instead it is checking whether ...

Tuesday, March 24 2009
876 :limit for primary key columns was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 11:11 PM

    Sorry but I'm concerned that this will get overlooked unless it is reopened.

2329 Default to :all if :select contains comma when counting was created in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot created the ticket at 11:01 PM

    I just upgraded my application to 2.3 and pagination started generating invalid SQL. Admittedly 2.2 hadn't been calculating the pages properly before either but...

Sunday, March 08 2009
876 :limit for primary key columns was updated in Ruby on Rails
  • James Le Cuirot
    James Le Cuirot commented at 3:09 PM

    Just realised the call to "compact" in the schema dumper can now be removed.

  • James Le Cuirot
    James Le Cuirot commented at 3:04 PM

    The patch already fixes change_column. There is still a " type != :primary_key" condition in the base definition of type_to_sql but the MySQL definition deals w...

  • James Le Cuirot
    James Le Cuirot commented at 1:13 PM

    Actually, to expand on what I just said about change_column not working, it's not merely a case of allowing the limit option to take effect because output from ...

  • James Le Cuirot
    James Le Cuirot commented at 1:09 PM

    change_column ignores the limit option for primary keys so that doesn't work.

    Although the patch looks a little big, it actually simplifies the existing code by...

Thursday, February 26 2009
1331 Allow arbitrary named_scope instances to be merged was updated in Ruby on Rails