Rails3: threadsafe