[Rails] Re: Opinion on a particular use of Initializers

2012-11-22 Thread Alex Braha Stoll
, Frederick Cheung escreveu: > > > > On Thursday, November 22, 2012 2:57:46 AM UTC, Alex Braha Stoll wrote: >> >> Thanks for the answer, Fred. >> >> When you say lazily loading the data I need you mean waiting for a first >> request that uses the data, right

[Rails] Re: Opinion on a particular use of Initializers

2012-11-21 Thread Alex Braha Stoll
heung escreveu: > > > > On Wednesday, November 21, 2012 5:57:15 PM UTC, Alex Braha Stoll wrote: >> >> >> Since the profile ids (and other 'constants' stored in the database) can >> only change if the sys admin changes their values before the deploy &g

[Rails] Opinion on a particular use of Initializers

2012-11-21 Thread Alex Braha Stoll
Hi! In the Rails app I'm developing I have some data stored in the database that acts like constants. For example, I populate a profiles table with all the profile types using seeds.rb. To avoid hardcoding the profile ids in my code, everytime I needed to do an operation involving a profile typ