[LRUG] [Rails Thingy] Does application.rb gets loaded before environement.rb, if no, Why this?
Abhishek Parolkar
abhishek.parolkar at gmail.com
Fri Nov 21 02:44:51 PST 2008
Alright, thanks for the note, I have also been going crazy for the similar
situation...
On Fri, Nov 21, 2008 at 3:48 PM, Matthew Rudy Jacobs <
matthewrudyjacobs at gmail.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/78a10b92/attachment-0003.html>
More information about the Chat
mailing list