Module: LogBook::Plugin::InstanceMethods
- Defined in:
- lib/log_book/plugin.rb
Instance Method Summary collapse
- #log_book_event_on_create ⇒ Object
- #log_book_event_on_destroy ⇒ Object
- #log_book_event_on_update ⇒ Object
Instance Method Details
#log_book_event_on_create ⇒ Object
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_destroy ⇒ Object
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_update ⇒ Object
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 |