Using Threadsafe! for rails