Class: Tenantable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tenantable/configuration.rb

Class Method Summary collapse

Class Method Details

.current_databaseObject



7
8
9
# File 'lib/tenantable/configuration.rb', line 7

def self.current_database
  @database
end

.database(user_database) ⇒ Object



3
4
5
# File 'lib/tenantable/configuration.rb', line 3

def self.database(user_database)
  @database = user_database
end