lib/stream/fires.rb in Stream-0.1.10 vs lib/stream/fires.rb in Stream-0.1.11

- old
+ new

@@ -49,21 +49,22 @@ ([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 else last_activity.photos << activity.subject 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 end - send(:"after_#{opts[:on]}", method_name, :if => opts[:if]) end end end end