Module: Cure::Database

Instance Method Summary collapse

Instance Method Details

#database_serviceObject



11
12
13
14
15
16
17
18
# File 'lib/cure/database.rb', line 11

def database_service
  database = DatabaseSource.instance.database_service
  return database if database

  init_database

  DatabaseSource.instance.database_service
end

#init_databaseObject



20
21
22
# File 'lib/cure/database.rb', line 20

def init_database
  DatabaseSource.instance.init_database
end