sam / harbor

Harbor is a Ruby Web Framework.
https://github.com/sam/harbor
MIT License
3 stars 6 forks source link

Application#initialize should be called #53

Closed sam closed 12 years ago

sam commented 12 years ago

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.

sam commented 12 years ago

Closed by 873cf872c2be7cb065938370221fb39e04a86aa6.