Module: LogBook::Plugin::InstanceMethods

Defined in:
lib/log_book/plugin.rb

Instance Method Summary collapse

Instance Method Details

#log_book_event_on_createObject



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

def log_book_event_on_create
  LogBook.created(self.log_book_historian, self)
end

#log_book_event_on_destroyObject



29
30
31
# File 'lib/log_book/plugin.rb', line 29

def log_book_event_on_destroy
  LogBook.destroyed(self.log_book_historian, self)
end

#log_book_event_on_updateObject



25
26
27
# File 'lib/log_book/plugin.rb', line 25

def log_book_event_on_update
  LogBook.updated(self.log_book_historian, self) unless changes.empty?
end