Module: Employer::Mongoid::Employee

Defined in:
lib/employer-mongoid/employee.rb

Instance Method Summary collapse

Instance Method Details

#perform_jobObject



4
5
6
7
8
9
10
11
# File 'lib/employer-mongoid/employee.rb', line 4

def perform_job
  super
ensure
  ::Mongoid::IdentityMap.clear
  ::Mongoid.sessions.keys.each do |session_name|
    ::Mongoid.session(session_name).disconnect
  end
end