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.

Richie Vos's latest activity

Wednesday, December 16 2009
2089 Add AR::Base#just_created? to differentiate records was updated in Ruby on Rails
  • Richie Vos
    Richie Vos commented at 5:19 AM

    I'll +1 this as well. I am doing my own find_or_create'ish code in an update (trying to properly handle proper PUT semantics), and need exactly this. I thought...

Tuesday, December 01 2009
454 ActiveRecord timezone issues was updated in Ruby on Rails
  • Richie Vos
    • Tag changed from activerecord, bug to activerecord, bug, timezone
    by Richie Vos at 9:03 PM

    Sorry, for 3 separate comments, but I think I should clarify, since I had too much timezone info in my brain and didn't properly say it (will be quite happy whe...

  • Richie Vos
    Richie Vos commented at 8:50 PM

    I am confident I will never properly format a lighthouse post.

  • Richie Vos
    • Tag set to activerecord, bug
    by Richie Vos at 8:48 PM

    Jeremy, I know it's been awhile, but can you explain why this is invalid?

    It seems like an inconsistent api that the following doesn't work:

    @@@ ruby { time = T...

Friday, July 24 2009
250 Mysql Deadlock debugging was updated in Ruby on Rails
  • Richie Vos
    Richie Vos commented at 6:11 PM

    I personally still would like this to be included. We're using this patch in production servers as a plugin, but it seems like it's useful enough to be part of ...

Wednesday, March 11 2009
1401 :dependent options shouldn't cause database hit when new_record was updated in Ruby on Rails
  • Richie Vos
    Richie Vos commented at 3:39 AM

    Also wanted to mention, while I understand some gain comes from adding comments around string interpolations, things like this seem like they're pushing it:

    
    ...
  • Richie Vos
    Richie Vos commented at 3:25 AM

    Pratik, due to the patch could you re-open this?

  • Richie Vos
    • Tag set to active_record, associations, destroy, new_record, patch
    by Richie Vos at 3:23 AM

    Attaching a patch that puts unless new_record? checks in the before_destroy hooks for :nullify and :delete_all.

    I do not believe these are necessary for :destro...

Wednesday, December 10 2008
1548 Gem tasks fail when cache_classes=true was created in Ruby on Rails
  • Richie Vos
    Richie Vos created the ticket at 6:31 PM

    If I have a model like:

    
    # MyModel.rb
    require 'fastercsv'
    class MyModel < ActiveRecord::Base; end
    

    and in my config file I have

    
    # ....
    config.cache_cla...