Displaying 1 result from an estimated 1 matches for "typoengin".
Did you mean:
typoengine
2005 Nov 09
2
Models within Modules
I''m taking a look at tackling the namespace pollution issues
surrounding engines and plugins at the moment. I came across this
ticket wherein Jeremy K. points out that the lack of an autoloading
feature of models within modules is by design.
For example:
class TypoEngine::Category < ActiveRecord::Base; end
will not be autoloaded if a controller, for example, were to
reference it like so:
@category = TypoEngine::Category.new
What, exactly, is by design here? Is it a speed enhancement? It
seems to make so much more sense from a best practices perspective...