lib/stance/event.rb in stance-0.5.2 vs lib/stance/event.rb in stance-0.5.3

- old
+ new

@@ -32,15 +32,15 @@ end def create return self if singleton_exists? - Rails.logger.info "Event: #{full_name}" - Stance::EventRecord.transaction do run_callbacks :create do # Call each public method of the Event class if a custom class. if self.class.name != 'Stance::Event' + Rails.logger.info "Event: #{full_name}" + (public_methods(false) - Stance::Event.instance_methods(false)).each do |method| send method end end