I have some working non rails standalone ruby code under ruby 1.8.6
using activesupport 2.3.5 to take a string and make it into a class
name. I was doing this:
Now under ruby 1.9.2 and rails beta4 it fails. classify is not valid
and I am not sure of constantize. Is there a new way to take a name
of a file and make it into a class name so it can be used. I have a
list of ruby files that contain an individual class. I can require the
file but I do not know the name of the class. I was using the file
basename classified and constantized to create the class name that I
later can use.
of a file and make it into a class name so it can be used. Â I have a
list of ruby files that contain an individual class. I can require the
file but I do not know the name of the class. I was using the file
basename classified and constantized to create the class name that I
later can use.
Active Support now extends practically nothing by default (so it is
less heavyweight by default).
This is a guide about AS core extensions I am writing myself (work in
progress, due for Rails 3):