Method: Simple::SQL#configuration
- Defined in:
- lib/simple/sql.rb
#configuration(database_url = :auto) ⇒ Object
returns a configuration hash, either from the passed in database URL, from a DATABASE_URL environment value, or from the config/database.yml file.
152 153 154 155 |
# File 'lib/simple/sql.rb', line 152 def configuration(database_url = :auto) database_url = Config.determine_url if database_url == :auto Config.parse_url(database_url) end |