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.

Mathieu Arnold's latest activity

Wednesday, April 20 2011
6731 Arel from git seems to have broken "except" was created in Ruby on Rails
  • Mathieu Arnold
    Mathieu Arnold created the ticket at 4:49 PM

    I was playing with the latest arel, rails and squeel, and I tried a simple thing :

    Facture.joins(:devise).sum("montant_ttc / taux")
    

    which used to work, but no...

Monday, May 03 2010
4395 Bug in nested_attributes when the primary key is not "id" was updated in Ruby on Rails
Thursday, April 15 2010
4395 Bug in nested_attributes when the primary key is not "id" was updated in Ruby on Rails
Wednesday, April 14 2010
4395 Bug in nested_attributes when the primary key is not "id" was updated in Ruby on Rails
  • Mathieu Arnold
    Mathieu Arnold commented at 11:42 PM

    Here is a patch, with a test.

  • Mathieu Arnold
    Mathieu Arnold commented at 9:48 PM

    I had not thought of missing records, in that case, you just need to do a :

    association.all(:conditions => {association.primary_key => attribute_ids})
    

    As for ...

  • Mathieu Arnold
    Mathieu Arnold created the ticket at 4:48 PM

    In 2ff5f38abb4a44ed5356c34b40d30d446fb63408 a bug was introduced on line 357, in the case the primary key is not called "id".

    Example :

    create_table 'custome...
Friday, April 09 2010
4356 model.errors.empty? broken was created in Ruby on Rails
  • Mathieu Arnold
    Mathieu Arnold created the ticket at 12:05 PM

    In the rails 2.3 docs, we can see in the ActiveRecord::Errors documentation :

    empty?()
    Returns true if no errors have been added.

    Which is quite nice to have, b...

Wednesday, December 02 2009
3535 New XSS protections breaks yaml was created in Ruby on Rails
  • Mathieu Arnold
    Mathieu Arnold created the ticket at 2:17 PM

    This is correct :

     >> ('foo' + 'baar').to_yaml
     => "--- foobaar\n"
    

    This, on the other hand, feels way wrong :

     >> ('foo' << 'baar').to_yaml
     => "--- !str \ns...