[Rails] Re: MyModel.descendants returns [] in a view after the first call?
Fearless Fool wrote in post #996867:
> [@Max: our messages just crossed. With all due respect, I think I like
> my approach better!]
> <snip>
> So now I overload MeteredService.descendants, calling 'require' instead
> of 'require_dependency'. This seems to work just fine:
> <snip>
> Let me know if I'm missing anything important.
Aaaaannnnnnd, there just one little problem: it doesn't work.
So my next approach will be some magick with const_defined? -- this time
for sure!!! ;)
--
Posted via http://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@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