First of all great job with an extremely useful plugin infrastructure.
Ive been looking at migrating part of some existing code into an engine
within rails 2.3. Essentially trying to modularize some code. We have
different config for different environments and also may end up using
initializers. So far I have managed to get it to work by replicating the
same directory structure in the main rails app and including the
following code in the init.rb file in the plugin.
engine_directory = File.expand_path(File.join(File.dirname(FILE)))
“config/initializers/**/*.rb”)].sort.each do |engine_initializer|
constants = self.class.constants
(self.class.constants - constants).each do |const|
Everything seems to work but was wondering what the best
practice/convention was for doing this.