Skip to content

Instantly share code, notes, and snippets.

@theory
Created April 27, 2010 23:07
Show Gist options
  • Save theory/381474 to your computer and use it in GitHub Desktop.
Save theory/381474 to your computer and use it in GitHub Desktop.
module ActiveRecord
class Base
class ConnectionSpecification #:nodoc:
class << self
alias_method :orig_establish_connection, :establish_connection
def establish_connection(spec = nil)
orig_establish_connection(spec)
puts "Hello"
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment