Frederick, On Thu, May 5, 2011 at 2:21 AM, Frederick Cheung <frederick.che...@gmail.com> wrote: > end > require_dependency 'sub1' > require_dependency 'sub2' > > which is a little bit less horrible than having a random bootstrap_x > method called in funny places but doesn't solve the problem of being > easy to forget to add to the list
well, the bootstrap is not in a random place, it is in config/environments/development.rb, so the code only runs in development mode :) - and yes, neither is great: * Pollute base classes with knowledge of their sub-classes for every environment just to fix a development environment behavior * Add a bunch of custom code to development.rb to work around the same and not have to pollute production code Both create additional 'remember to' tasks that undo a lot of the benefit the meta-programming is supposed to provide. - Max -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.