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.

porras's latest activity

Thursday, May 21 2009
2298 ActiveRecord::Rollback does not nil all id attributes was updated in Ruby on Rails
  • porras
    porras commented at 11:59 AM

    @calavera it's not related. AR wraps each save (and its validations and callbacks) in a transaction (which is nested if you already have one opened). That's the...

Monday, May 18 2009
2298 ActiveRecord::Rollback does not nil all id attributes was updated in Ruby on Rails
  • porras
    • Tag changed from 2.3.2, activerecord, nested, rollback to 2.3.2, activerecord, nested, rollback, testcase
    by porras at 8:57 PM

    I also hit this in our app. I uploaded a failing test which reproduces it.

Saturday, February 07 2009
1847 to_sentence breaks api was updated in Ruby on Rails
  • porras
    porras commented at 10:43 PM

    +1, tests pass

1907 Class methods which call named_scopes lose previous scope (both associations ... was created in Ruby on Rails
  • porras
    porras created the ticket at 6:42 PM

    ActiveRecord models' class methods get added to collections (keeping scope):

    
        class Post < AR::B
      
          belongs_to :user
        
          def self.wadus
    ...
1852 Patch to add index length support was updated in Ruby on Rails
  • porras
    porras commented at 3:54 PM

    +1, tests pass and create the indices as described

Monday, December 08 2008
1497 New default backtrace filter for Gems was updated in Ruby on Rails
  • porras
    • Tag changed from backtrace, edge, logging, patch to backtrace, edge, logging, patch, verified
    by porras at 12:12 AM

    +1

1127 :allow_nil option for delegate was updated in Ruby on Rails
  • porras
    porras commented at 12:09 AM

    I updated the patch, which no longer applied after the :prefix option was added.

    @Josh, as Dave explained, this option is intended only for the cases where this...

Sunday, December 07 2008
1526 New template runner gives some strange feedback when running git was created in Ruby on Rails
  • porras
    porras created the ticket at 11:44 PM

    New template runner gives some strange feedback when running git (but it runs the right commands). A example:

    
    git :add => ".", :commit => "-a -m 'Initial com...
Monday, September 29 2008
984 Make it possible to alias delegation methods was updated in Ruby on Rails
Saturday, September 27 2008
1127 :allow_nil option for delegate was created in Ruby on Rails
  • porras
    porras created the ticket at 8:43 PM

    Adds :allow_nil option to delegate method:

    
      # If the object in which you delegate can be nil, you may want to use the
      # :allow_nil option. In that case, i...