Module: Penthouse::Migration

Defined in:
lib/penthouse/migrator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
# File 'lib/penthouse/migrator.rb', line 8

def self.included(base)
  base.alias_method_chain :announce, :penthouse
end

Instance Method Details

#announce_with_penthouse(message) ⇒ Object



12
13
14
# File 'lib/penthouse/migrator.rb', line 12

def announce_with_penthouse(message)
  announce_without_penthouse("#{message} - #{current_tenant}")
end

#current_tenantObject



16
17
18
# File 'lib/penthouse/migrator.rb', line 16

def current_tenant
  "Tenant: #{Penthouse.tenant || '*** global ***'}"
end