[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:55:02 PST 2008


Wow, You saved me hours , Thanks again!


On Fri, Nov 21, 2008 at 4:46 PM, Matthew Rudy Jacobs <
matthewrudyjacobs at gmail.com> wrote:

> try defining "require_widget" in /config/initializers/widget_stuff.rb
>
> I think that'll work.
>
>
> 2008/11/21 Abhishek Parolkar <abhishek.parolkar at gmail.com>
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/65f22409/attachment-0003.html>


More information about the Chat mailing list