Why should we avoid using class variables @@ in rails? Is there any security loopholes with that. Please answer as I am new with rails. and I am much using instance variable @variable_name . I tried once @@variable_name .
I know only about class variable is, Class variable is sharable between object
But I really would like to know Why should we avoid using class variables @@ in rails?
staticvariables in Java. No reason not to use it, just be aware that it doesn't belong to your instance and could change asynchronously.