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