method

config

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: Rails::DBConsole
config() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/commands/dbconsole.rb, line 82
    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
Register or log in to add new notes.