Method: Mongrel2::Config.dbname
- Defined in:
- lib/mongrel2/config.rb
.dbname ⇒ Object
Return the name of the current config database, or nil if the current database is an in-memory one.
227 228 229 230 231 232 233 234 235 |
# File 'lib/mongrel2/config.rb', line 227 def self::dbname if self.db.opts[:database] return self.db.opts[:database] elsif self.db.uri return URI( self.db.uri ) else return nil end end |