public_activity 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/public_activity/common.rb +3 -3
- data/lib/public_activity/version.rb +1 -1
- metadata +1 -1
@@ -251,10 +251,10 @@ module PublicActivity
|
|
251
251
|
|
252
252
|
if call_hook_safe(options[:key].split('.').last)
|
253
253
|
reset_activity_instance_options
|
254
|
-
PublicActivity::Adapter.create_activity(self, options)
|
254
|
+
return PublicActivity::Adapter.create_activity(self, options)
|
255
255
|
end
|
256
256
|
|
257
|
-
|
257
|
+
nil
|
258
258
|
end
|
259
259
|
|
260
260
|
# Prepares settings used during creation of Activity record.
|
@@ -273,7 +273,7 @@ module PublicActivity
|
|
273
273
|
all_options = args.extract_options!
|
274
274
|
options = {
|
275
275
|
key: all_options.delete(:key),
|
276
|
-
owner: all_options.delete(:
|
276
|
+
owner: all_options.delete(:owner),
|
277
277
|
action: all_options.delete(:action),
|
278
278
|
recipient: all_options.delete(:recipient),
|
279
279
|
parameters: all_options.delete(:parameters) || all_options.delete(:params)
|