Module: AtomicTenant::ActiveJob

Extended by:
ActiveSupport::Concern
Defined in:
lib/atomic_tenant/active_job.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*_args, **_kargs) ⇒ Object



15
16
17
18
# File 'lib/atomic_tenant/active_job.rb', line 15

def initialize(*_args, **_kargs)
  @tenant = AtomicTenant.tenant_model.current_key
  super
end

#serializeObject



20
21
22
# File 'lib/atomic_tenant/active_job.rb', line 20

def serialize
  super.merge('tenant' => @tenant)
end