Skip to content

Instantly share code, notes, and snippets.

@linden-zz
Created April 9, 2010 18:10
Show Gist options
  • Save linden-zz/361416 to your computer and use it in GitHub Desktop.
Save linden-zz/361416 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
@chuckbergeron
Copy link

Gorgeous. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment