Method: Jets::Commands::Dbconsole#config
- Defined in:
- lib/jets/commands/dbconsole.rb
#config ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/jets/commands/dbconsole.rb', line 87 def config @config ||= begin if configurations[environment].blank? raise ActiveRecord::AdapterNotSpecified, "'#{environment}' database is not configured. Available configuration: #{configurations.inspect}" else configurations[environment] end end end |