Thijs de Vries
MIS · Not a member
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
-
- Tag cleared.
@@@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 commented at 11:34 PMThat 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 created the ticket at 10:19 PMIf 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 created the ticket at 9:54 PMSay 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...