Forum: Ruby on Rails Revision 3637 killed support for models in modules?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
433024a5a3f9fc91664c8170af1c7350?d=identicon&s=25 Tomas Jogin (Guest)
on 2006-03-06 23:09
(Received via mailing list)
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
433024a5a3f9fc91664c8170af1c7350?d=identicon&s=25 Tomas Jogin (Guest)
on 2006-03-07 01:53
(Received via mailing list)
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
This topic is locked and can not be replied to.