Skip to content

Instantly share code, notes, and snippets.

@theory
Created April 27, 2010 23:29
Show Gist options
  • Save theory/381490 to your computer and use it in GitHub Desktop.
Save theory/381490 to your computer and use it in GitHub Desktop.
class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
alias_method :originit, :initialize
def initialize(connection, logger, connection_parameters, config)
ret = originit(connection, logger, connection_parameters, config)
self.execute('SELECT prepare_perl_utils()')
return ret
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment