audited-activejob 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32b258b8dbc931a94341a85aa462d2bccfb4f4fc
4
- data.tar.gz: b5244775f57927f659db1721ba4b7fd4eb1649c7
3
+ metadata.gz: 576bfe13efb911b347c85b2ed3c6858f3cd8d49e
4
+ data.tar.gz: 3b14f6dd0efef7c91fb1cc8c495d8cfd34113241
5
5
  SHA512:
6
- metadata.gz: e4b610d463e0d17a87d1f1bfe657bafdce9a7a0d55aba1c85b560f45d2c4ef2228e7196f07f739fb5b6c219c65f4dc43f01af59ba930bb9ae9392ceb47f61349
7
- data.tar.gz: f0bad6a05b606f169c98f9310eaeffe4c6656dbc8d8e12d9c892495e99dcaca0bcd362e55c25ffbbf3889bd126abefe78f4162f932c84b8e8c16cba09d080f54
6
+ metadata.gz: 030974c609ce59e53aa506d5539f7e8ad9b9e1ebe55a2bf476fff3b897d2bc66cefbc642ced2f5b79bcf63d46c9022b184d338a0a52ca6f94b60b157244e8ec0
7
+ data.tar.gz: dcade07a4bd6ca4085fcb921d8f522be3ee79b3547715cd0449fa67b0602101f5b700a5c619b970e07392946d2c8410694b814b611c81e2f0b5909d3f70f8f33
@@ -1,14 +1,14 @@
1
1
  module Audited
2
2
  module ActiveJob
3
3
  def self.included(base)
4
- base.send :attr_reader, :current_user
4
+ base.send :attr_reader, :audit_user
5
5
 
6
- base.send :around_perform do |job, block|
6
+ base.send :around_perform do |_job, block|
7
7
  options = arguments.extract_options!
8
- @current_user = options.delete(:current_user)
8
+ @audit_user = options.delete(:audit_user)
9
9
  arguments << options unless options.empty?
10
10
 
11
- Audited.audit_class.as_user(current_user) do
11
+ Audited.audit_class.as_user(audit_user) do
12
12
  block.call
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Audited
2
2
  module ActiveJob
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audited-activejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Pass a current_user through to your active_jobs and use it in any generated
69
+ description: Pass a user through to your active_jobs and associate it with any generated
70
70
  audits
71
71
  email:
72
72
  - mark@markrebec.com
@@ -100,7 +100,7 @@ rubyforge_project:
100
100
  rubygems_version: 2.4.8
101
101
  signing_key:
102
102
  specification_version: 4
103
- summary: Pass a current_user through to your active_jobs and use it in any generated
103
+ summary: Pass a user through to your active_jobs and associate it with any generated
104
104
  audits
105
105
  test_files:
106
106
  - spec/spec_helper.rb