TzTime thread safe?

The implementation of TzTime uses:

class TzTime
class <<self
attr_accessor :zone

and then recommends doing this:

class ApplicationController < ActionController::Base
around_filter :set_timezone

def set_timezone = current_user.time_zone

Won’t this cause problems with concurrent requests for two users with
different timezones?

AFAIK Rails doesn’t do concurrent requests.

Rails is not thread safe. Thats why we have to use mongrel_cluster . I
believe Merb IS threaded if you’re worried about concurrency. It is
also a lot faster!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs