eval works! :-)
Thanks you

On Jun 21, 7:38 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Jun 21, 1:30 pm, Ritvvij <ritvi...@gmail.com> wrote:
>
> > Is there something like REFLECTION?
>
> Well you can use eval. However more often than not there is a better
> way (that won't let someone setup the rule `rm -rf`  )
>
> Fred
>
> > On Jun 21, 7:28 am, Ritvvij <ritvi...@gmail.com> wrote:
>
> > > Hi,
>
> > > I have a module which needs configurable rule. This piece of code,
> > > something as small as, "current_user.chapter_id", etc has been stored
> > > in the DB. I fetch this code into the helper class and then need to
> > > run it to generate an ID. How do i do it???
>
> > > But of course its taking it as a string.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to