Skip to content

Instantly share code, notes, and snippets.

@stan
Forked from linden-zz/gist:361416
Created May 11, 2010 07:26
Show Gist options
  • Save stan/397012 to your computer and use it in GitHub Desktop.
Save stan/397012 to your computer and use it in GitHub Desktop.
class BaseTask
def self.perform(*args)
ActiveRecord::Base.verify_active_connections!
end
end
class SomeTask < BaseTask
def self.perform(*args)
super
# do some stuff
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment