On May 30, 9:50 pm, Alex Wayne
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I came accross this snippet from the docrails project
>
> "When monkey-patching existing classes it''s often better to
use
> `class_eval` instead of opening the class directly."
>
> From this
commit:http://github.com/lifo/docrails/commit/60e37868e40ac11f07cbda81f24dcd...
http://ola-bini.blogspot.com/2008/05/dynamically-created-methods-in-ruby.html
says the opposite
Fred>
> First of all, is this right? And second, why? Does it make a
> difference if this is a in the context of a rails plugin?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---