[Rails] Re: Class Variables - Static.

2014-05-26 Thread Rupesh Jayaprakash
Thank You Jones for your answer, I was suspecting that my class variable will not be the same at the same request. I understand that on a multi-process deployment things would be different. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to t

[Rails] Re: Class Variables - Static.

2014-05-26 Thread Matt Jones
On Monday, 26 May 2014 03:16:26 UTC-4, Ruby-Forum.com User wrote: > > Hello, > > When setting the class static variables, These are shared across all the > instances created. > > Class A > @@bool_var = true > > def get_bool_var > @@bool_var > end > end > > All the instances wil