theforeman/foreman — pull request #574 by iNecas (2013-05-03 10:00:58+00:00)
Title: Fix loading settings in production

The Setting subclasses are not preloaded in initialization phase in
production. Also, mentioning the classes instead of require_dependency is
probably a bit better due to development mode: I've experienced some
difference in development mode, where require_dependency caused some memory
leaks.

Also (if Setting.first rescue (false)) is not satisfied when the settings are
not set yet. Using table_exists? instead.