lib/stream/fires.rb in Stream-0.1.15 vs lib/stream/fires.rb in Stream-0.1.16

- old
+ new

@@ -50,18 +50,19 @@ ([activity.actor] + gallery.allowed_contacts).each do |p| activity.is_hidden = activity.subject.approval_status==true ? true : false activity.photos << activity.subject activity.save p.activity_items << activity - send(:"after_#{opts[:on]}", method_name, :if => opts[:if]) end end else activity.save ([activity.actor] + activity.actor.contacts).each{|p| p.activity_items << activity } - send(:"after_#{opts[:on]}", method_name, :if => opts[:if]) end end + + send(:"after_#{opts[:on]}", method_name, :if => opts[:if]) + end end end end