In other words your problem was to set the organization in every
created model without pain ?

Ruby is not singlethreaded. You can even make your Rails app using
multiple Thread by calling setting threadsafe in Rails configuration.
I think Rails is threadsafe since 2.2 version. Instead of class
accessor you could use Thread.current[:organisation_id]

Robert Pankowecki

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to