Skip to content

Instantly share code, notes, and snippets.

@ratnikov
Forked from theory/gist:381490
Created April 27, 2010 23:31
Show Gist options
  • Select an option

  • Save ratnikov/381494 to your computer and use it in GitHub Desktop.

Select an option

Save ratnikov/381494 to your computer and use it in GitHub Desktop.
class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
def initialize_with_perl_utils(*args)
returning(initialize_without_perl_utils(*args)) do
execute('SELECT prepare_perl_utils()')
end
end
alias_method_chain :initialize, :perl_utils
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment