Use class level instance variable instead of class variable.
reference: http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/