Stream 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stream/fires.rb +5 -7
- data/stream.gemspec +1 -1
- metadata +1 -1
data/lib/stream/fires.rb
CHANGED
@@ -33,13 +33,11 @@ module Stream
|
|
33
33
|
|
34
34
|
create_options[:activity_type] = activity_type.to_s
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
([activity.actor] + activity.actor.contacts).each{|p| p.activity_items << activity }
|
42
|
-
end
|
36
|
+
activity = ActivityItem.create!(create_options)
|
37
|
+
if activity_type.to_s.eql?'new_message'
|
38
|
+
activity.subject.recipient.activity_items << activity
|
39
|
+
else
|
40
|
+
([activity.actor] + activity.actor.contacts).each{|p| p.activity_items << activity }
|
43
41
|
end
|
44
42
|
|
45
43
|
send(:"after_#{opts[:on]}", method_name, :if => opts[:if])
|
data/stream.gemspec
CHANGED