module Adbc

Public Class Methods

clean() click to toggle source
# File lib/adbc.rb, line 17
def clean
  cleaners.each &:clean
end
cleaners() click to toggle source
# File lib/adbc.rb, line 9
def cleaners
  @cleaners ||= [Adbc::Cleaner.new(ActiveRecord::Base.connection)]
end
create_cleaner(connection) click to toggle source
# File lib/adbc.rb, line 13
def create_cleaner(connection)
  cleaners << Adbc::Cleaner.new(connection)
end
watching() { || ... } click to toggle source
# File lib/adbc.rb, line 21
def watching
  yield
ensure
  clean
end