Re: Is eval the only way?


#1

Inside Rails, you can do:
x = class_name.constantize.find(:all, :conditions => “#{conditions}”)

constantize is a more-readable shortcut for the const_get business.

Thanks Wilson! – That works like a charm.

: )

Jason