action_trace 0.10.0 → 0.11.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8570cc37927c89387b53e02320f2e0a82d82cc974718ad698e349c51b4130c00
4
- data.tar.gz: 1965ebcc11e15cc3c3ed2870266244416ec780c4d3f6f397b5d99dc7c5dbfc61
3
+ metadata.gz: 92ae92e181fe8aadbd9f7866ae3e6eda21c6b2349e5d07f18bf77254a9e38bb8
4
+ data.tar.gz: 87e17bfd74c3ab0254643f795b141667930e0553a7556aa6e61ba1183b3f999f
5
5
  SHA512:
6
- metadata.gz: db633e95eba53c0cffc8d62ff623440973f979c4bf8b698e59d8b7481b19c589d82e7d0d7defdf45041be16b219d138f799a59e2f167fad2269da6d8a7e67a0f
7
- data.tar.gz: 16af337a131960b9d820e1f9d5650d9938585bedf5c36fa59a3863231ca88a84b718ff2be66e3a14ffc1f730e0ade3106dde31b851eb1905aa32239c65abf7e6
6
+ metadata.gz: 8e47a9ab4f7a34f2ca90df32aea6f28cfcfad4b156335a100d3074fc00a67046d1ca5d608709565463aea757abe11f1e7a31ac50c7a4fc7c3faab3240d021e37
7
+ data.tar.gz: 425c7afcfd63ca995eee30e018d33506adf7173337025996e26282398b807ab4e23dc1a65c1855f5865e18bdb34245d51438231e6fc6b585236495e6deada9b3
@@ -14,6 +14,16 @@ module ActionTrace
14
14
 
15
15
  private
16
16
 
17
+ def create_activity(*args)
18
+ return unless public_activity_enabled?
19
+
20
+ options = prepare_settings(*args)
21
+ return unless call_hook_safe(options[:key].split('.').last)
22
+
23
+ reset_activity_instance_options
24
+ PublicActivity::Activity.create(options.merge(trackable: self))
25
+ end
26
+
17
27
  def track_create_activity
18
28
  track_activity('create')
19
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTrace
4
- VERSION = '0.10.0'
4
+ VERSION = '0.11.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gimbaro
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
292
  - !ruby/object:Gem::Version
293
293
  version: '0'
294
294
  requirements: []
295
- rubygems_version: 4.0.8
295
+ rubygems_version: 4.0.12
296
296
  specification_version: 4
297
297
  summary: A Rails engine that consolidates user interaction tracking into a single
298
298
  integration