Class: Patchstream::PatchStreamCallbacks

Inherits:
Object
  • Object
show all
Defined in:
lib/patchstream.rb

Instance Method Summary collapse

Instance Method Details

#around_create(record, &block) ⇒ Object



13
14
15
# File 'lib/patchstream.rb', line 13

def around_create(record, &block)
	record.class.patch_streams.emit_create(record, &block)
end

#around_destroy(record, &block) ⇒ Object



21
22
23
# File 'lib/patchstream.rb', line 21

def around_destroy(record, &block)
	record.class.patch_streams.emit_destroy(record, &block)
end

#around_update(record, &block) ⇒ Object



17
18
19
# File 'lib/patchstream.rb', line 17

def around_update(record, &block)
	record.class.patch_streams.emit_update(record, &block)
end