Tomas Jogin
2006-Mar-06 22:06 UTC
[Rails] Revision 3637 killed support for models in modules?
Hi, My app uses modules both for controllers and models (in order to make the app installable with any other Rails app without conflicts). In revision 3636, everything worked just fine, but in 3637 something very odd happened. On the _first_ request to the server, the page loads fine, but any request _after_ that dies on Uninitialized Constant errors, referring to my models in modules. This error persists up until and including the latest revision (3801 at the time of this writing). Did some behaviour change drastically at revision 3637? Am I supposed to change anything about my models to have them work with revisions past 3636? http://dev.rubyonrails.org/changeset/3637 Best regards, Tomas Jogin
Tomas Jogin
2006-Mar-07 00:52 UTC
[Rails] Re: Revision 3637 killed support for models in modules?
Further investigating shows that models in modules only DON''T work fine with 3637 and later when a model within a module is being referenced from inside of a helper. Any tips, ideas or similar experience with this would be greatly appreciated. Regards, Tomas Jogin On 3/6/06, Tomas Jogin <tomasj@gmail.com> wrote:> Hi, > > My app uses modules both for controllers and models (in order to make > the app installable with any other Rails app without conflicts). In > revision 3636, everything worked just fine, but in 3637 something very > odd happened. On the _first_ request to the server, the page loads > fine, but any request _after_ that dies on Uninitialized Constant > errors, referring to my models in modules. This error persists up > until and including the latest revision (3801 at the time of this > writing). > > Did some behaviour change drastically at revision 3637? Am I supposed > to change anything about my models to have them work with revisions > past 3636? > > http://dev.rubyonrails.org/changeset/3637 > > Best regards, > Tomas Jogin >