Skip to content

Commit

Permalink
bugfix - reference active record in the global namespace scope after_…
Browse files Browse the repository at this point in the history
…fork
  • Loading branch information
martinbtt authored and bkeepers committed Apr 4, 2010
1 parent 7b05a2d commit b3df972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Job < ::ActiveRecord::Base
named_scope :by_priority, :order => 'priority ASC, run_at ASC'

def self.after_fork
ActiveRecord::Base.connection.reconnect!
::ActiveRecord::Base.connection.reconnect!
end

# When a worker is exiting, make sure we don't have any locked jobs.
Expand Down

0 comments on commit b3df972

Please sign in to comment.