W
Wes Gamble
All,
In my Rails app., I'm doing something like this:
eval("#{requested_controller_class}.respond_to?('session_data_not_needed_by?')")
where requested_controller_class is the name of an existing (controller)
class.
Is the above code the best of way of invoking respond_to? on the class
in question, or is there some better way to get the actual class object
based solely on it's name?
Thanks,
Wes
In my Rails app., I'm doing something like this:
eval("#{requested_controller_class}.respond_to?('session_data_not_needed_by?')")
where requested_controller_class is the name of an existing (controller)
class.
Is the above code the best of way of invoking respond_to? on the class
in question, or is there some better way to get the actual class object
based solely on it's name?
Thanks,
Wes