Module: AppConfigRails
- Defined in:
- lib/app_config_rails.rb,
lib/app_config_rails/railtie.rb,
lib/app_config_rails/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.load_app_config! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/app_config_rails.rb', line 6 def self.load_app_config! case db_config[:adapter] when 'mysql' configure_mysql when 'postgresql' configure_postgres when 'sqlite3' configure_sqlite else raise RuntimeError, "AppConfigRails: Database adapter '#{db_config[:adapter]}' not supported; please create an issue if you would like it implemented." end end |