I want to get the names of the subclasses.
In my model class, I have
@@subtypes ||= 
session[:subtypes] = @@subtypes
@subtypes has names of the subclasses in array, but give nil value when
accessed outside this method since the variable is initialized (in
development mode), everytime the classes are reloaded.
So I tried putting it in session, but am getting an exception as
“…undefined local variable or method `session’ for Sample:Class
(NameError)” in my Server startup.
Any other suggestions other than session logic?
Appreciate any help.