Forum: Ruby on Rails Scopers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Steve S. (Guest)
on 2009-04-13 15:44
(Received via mailing list)
Anyone know what this sort of a method does?

  def scoper
    eval "Helpdesk::#{cname.classify}"
  end
Frederick C. (Guest)
on 2009-04-13 15:46
(Received via mailing list)
On Apr 13, 11:49 am, Steve S. <removed_email_address@domain.invalid> 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
This topic is locked and can not be replied to.