lib/yaps/actions/updation.rb in yaps-0.0.1 vs lib/yaps/actions/updation.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 Updation extend ActiveSupport::Concern - include Wisper::Publisher included do - after_update { publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_updated", self) } + after_update do + publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_updated", self) + end end end end