Saturday, September 25, 2010

Re: [Rails] Re: Is it a security risk using eval in the model?

On 25 September 2010 17:04, Marnen Laibow-Koser <lists@ruby-forum.com> wrote:
> However, eval is virtually never necessary in Ruby.  99% of the time (as
> in the OP's case), you actually wanted send.  I'll post an example later
> if it would be helpful.

There's a good case for the other 1% using "yield" ... :-)

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate