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.

Thijs de Vries's latest activity

Thursday, March 12 2009
1830 Rails.cache.fetch does not work with false boolean as cached value was updated in Ruby on Rails
  • Thijs de Vries
    • Tag cleared.
    by Thijs de Vries at 3:10 PM

    @@@ruby if !options[:force] && ((value = read(key, options)) != nil)

    
    won't let you store nil as a value. In case a really expensive function returns nil, one...
Saturday, January 31 2009
1830 Rails.cache.fetch does not work with false boolean as cached value was updated in Ruby on Rails
  • Thijs de Vries
    Thijs de Vries commented at 11:34 PM

    That last patch I sent caused some of the tests to fail. This one won't fail any tests and allows for the new ones to pass.

  • Thijs de Vries
    • Tag set to patch
    by Thijs de Vries at 10:32 PM

    Here's a patch that should do it.

  • Thijs de Vries
    Thijs de Vries created the ticket at 10:19 PM

    If I run

    
    some_bool_value = Rails.cache.fetch("some_key") {expensive_function_returns_false()}
    

    Rails will miss on the fetch every time. However if I do

    
    i...
Monday, August 18 2008
855 HABTM creates duplicate row on push was created in Ruby on Rails
  • Thijs de Vries
    Thijs de Vries created the ticket at 9:54 PM

    Say I have two classes, foo and bar which have and belong to many of each other.

    foo < ActiveRecord::Base has_and_belongs_to_many :bars end

    bar < ActiveRecor...