Eager load Rails application

Antonio Terceiro terceiro at colivre.coop.br
Tue Jul 7 14:23:38 BRT 2015


On Tue, Jul 07, 2015 at 10:37:52AM -0300, Rodrigo Souto wrote:
> Hello everyone,
> 
> On the development of the api's task mountpoint André suggested the use
> of Rails.application.eager_load! to ensure every Article and Task
> subclasses were properly loaded. Check it out:
> https://gitlab.com/noosfero/noosfero/merge_requests/619/diffs
> 
> Although the place where he used it is not the best, I think it's a good
> idea, since today we have class types hardcoded all over the code due to
> this lazy loading behaviour.
> 
> What do you think about adding it now and then we slowly remove the
> hardcoded types?

How does this interact with live reloading in development mode?

Anyway, I think that we can try this for 1.3 ... but we need people to
test that it works correctly before landing this on master.

-- 
Antonio Terceiro <terceiro at colivre.coop.br>
Colivre - Cooperativa de Tecnologias Livres
http://www.colivre.coop.br/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150707/4a180be8/attachment.pgp>


More information about the Noosfero-dev mailing list