On Mar 30, 6:20 pm, sweet61 <[email protected]> wrote:
> The error thrown is
>
>     ArgumentError (A copy of MtLib::DBValidations has been removed
> from
>       the module tree but is still active!):
>
> My question is what is the process that is followed when cache_class
> is set to false. Does Rails re-run any of the initialization methods?
> If not then where is the best place for me to put my patch to ensure
> that it is in all models and survives a classes reload?
>
It doesn't rerun any initialization. If you add your file to
ActiveSupport::Dependencies.load_once_paths then it won't get
unloaded.

Fred

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to