On Apr 13, 11:49 am, Steve Shephed
<sargs...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Anyone know what this sort of a method does?
>
> def scoper
> eval "Helpdesk::#{cname.classify}"
> end
Not very much - turns a string into a class (and depending on where
cname comes from, could be a big security hole)
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---