Module: Adbc
- Defined in:
- lib/adbc.rb,
lib/adbc/cleaner.rb
Defined Under Namespace
Classes: Cleaner
Class Method Summary collapse
Class Method Details
.clean ⇒ Object
17 18 19 |
# File 'lib/adbc.rb', line 17 def clean cleaners.each &:clean end |
.cleaners ⇒ Object
9 10 11 |
# File 'lib/adbc.rb', line 9 def cleaners @cleaners ||= [Adbc::Cleaner.new(ActiveRecord::Base.connection)] end |
.create_cleaner(connection) ⇒ Object
13 14 15 |
# File 'lib/adbc.rb', line 13 def create_cleaner(connection) cleaners << Adbc::Cleaner.new(connection) end |
.watching ⇒ Object
21 22 23 24 25 |
# File 'lib/adbc.rb', line 21 def watching yield ensure clean end |