lib/stream/fires.rb in Stream-0.1.1 vs lib/stream/fires.rb in Stream-0.1.2

- old
+ new

@@ -28,12 +28,15 @@ memo[sym] = send(opts[sym]) end end memo end - create_options[:activity_type] = activity_type.to_s + #create_options[:activity_type] = activity_type.to_s - ActivityItem.create!(create_options) + transaction do + activity = ActivityItem.create!(create_options) + ([user] + user.contacts).each{ |p| p.activity_items << activity } + end end send(:"after_#{opts[:on]}", method_name, :if => opts[:if]) end end