Skip to content

Instantly share code, notes, and snippets.

@teamon
Created August 5, 2008 02:22
Show Gist options
  • Save teamon/4021 to your computer and use it in GitHub Desktop.
Save teamon/4021 to your computer and use it in GitHub Desktop.
def append_before(*args, &block)
scope, options = scope_and_options(*args)
parts = before_parts_from_scope(scope)
parts << proc { DataObjects::Postgres.logger.level = :off }
parts << block
parts << proc { DataObjects::Postgres.logger.level = :debug }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment