Class: LogObserver

Inherits:
ActiveRecord::Observer
  • Object
show all
Defined in:
lib/six-updater-web/app/models/log_observer.rb

Instance Method Summary collapse

Instance Method Details

#after_create(record) ⇒ Object



4
5
6
# File 'lib/six-updater-web/app/models/log_observer.rb', line 4

def after_create(record)
  expire_cache_for record
end

#after_destroy(record) ⇒ Object



12
13
14
# File 'lib/six-updater-web/app/models/log_observer.rb', line 12

def after_destroy(record)
  expire_cache_for record
end

#after_update(record) ⇒ Object



8
9
10
# File 'lib/six-updater-web/app/models/log_observer.rb', line 8

def after_update(record)
  expire_cache_for record
end