[LRUG] [Rails Thingy] Does application.rb gets loaded before environement.rb, if no, Why this?
Matthew Rudy Jacobs
matthewrudyjacobs at gmail.com
Fri Nov 21 01:48:27 PST 2008
I'm pretty sure that, as of Rails 2.1, application.rb gets loaded inside the
initializer block.
This caused me quite a few crazy errors when I first moved to 2.1.
Particularly as it gets loaded up when Migrations are run,
so I had code in application.rb, which required a specific table to exist,
but, when I tried to run the migration to create that table, it broke.
This also screwed up several other things like monkey patching
ActionController::Base.
2008/11/21 Abhishek Parolkar <abhishek.parolkar at gmail.com>
> Hi there,
>
> A weird situation here, I am doing this kind of thing to refactor a piece
> of code for better widgetising!...
>
> http://pastie.org/320383
>
> Any help?
>
> ' Abhishek Parolkar
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20081121/cca44fb9/attachment-0003.html>
More information about the Chat
mailing list