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.
@@ -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
- return nil
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(:key),
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)
@@ -1,4 +1,4 @@
1
1
  module PublicActivity
2
2
  # A constant with gem's version
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: public_activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: