Application#initialize would be a place to use the data set in config to do things like make database connections.
config is for data, Application#initialize is for behavior.
That way a "mounted" app could provide sane defaults (say a database connection string), but you could overwrite them and ensure that the actual code is called only once.
Application#initialize
would be a place to use the data set inconfig
to do things like make database connections.config
is for data,Application#initialize
is for behavior.That way a "mounted" app could provide sane defaults (say a database connection string), but you could overwrite them and ensure that the actual code is called only once.