Method: Mongrel2::Config.database_initialized?

Defined in:
lib/mongrel2/config.rb

.database_initialized?Boolean

Returns true if the config database has been installed. This currently only checks to see if the ‘server’ table exists for the sake of speed.

Returns:

  • (Boolean)


195
196
197
198
199
# File 'lib/mongrel2/config.rb', line 195

def self::database_initialized?
	return self.without_sql_logging do
		self.db.table_exists?( :server )
	end
end