I'm pretty sure that, as of Rails 2.1, application.rb gets loaded inside the initializer block.<br><br>This caused me quite a few crazy errors when I first moved to 2.1.<br>Particularly as it gets loaded up when Migrations are run,<br>
<br>so I had code in application.rb, which required a specific table to exist,<br>but, when I tried to run the migration to create that table, it broke.<br><br>This also screwed up several other things like monkey patching ActionController::Base.<br>
<br><div class="gmail_quote">2008/11/21 Abhishek Parolkar <span dir="ltr"><<a href="mailto:abhishek.parolkar@gmail.com">abhishek.parolkar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>A weird situation here, I am doing this kind of thing to refactor a piece of code for better widgetising!...<br><br><a href="http://pastie.org/320383" target="_blank">http://pastie.org/320383</a><br><br>Any help?<br>
<font color="#888888"><br>' Abhishek Parolkar<br>
<br>
</font><br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>