Ruby on Rails
Tuesday, January 31, 2012
Thanks Tom ,
-- I have actually figured out the problem.
Seems like since the lib of the plugin is not reloaded on every request
but the main app is .The plugin override works for first request but the
original methods are restored the next one.
The solution that worked for me was wrapping our monkey-patch in a callback.
Evgeny
On Mon, Jan 30, 2012 at 6:28 PM, Tim Shaffer <timshaffer@me.com> wrote:
I think your issue may be a mixup with class instance and instance variables.However, what's the issue you are having with all this? Are you getting any error messages?
--To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/C-uGWVAUau0J.
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.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment