Module: Watchtower::WatchedExceptionBase::Callbacks
- Defined in:
- lib/watchtower/watched_exception_base.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 |
# File 'lib/watchtower/watched_exception_base.rb', line 12 def self.included(base) base.send :include, InstanceMethods base.before_validation_on_create :generate_key, :if => lambda {|watched_exception| watched_exception.key.blank? } base.before_save :generate_controller_action, :clean_backtrace end |