lib/yaps/actions/destruction.rb in yaps-0.0.1 vs lib/yaps/actions/destruction.rb in yaps-0.0.2

- old
+ new

@@ -1,11 +1,12 @@ module Yaps # Handles creation of Activities upon destruction and update of tracked model. module Destruction extend ActiveSupport::Concern - include Wisper::Publisher included do - before_destroy { publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_deleted", self) } + before_destroy do + publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_deleted", self) + end end end end