paper_trail-rails 0.4.0 → 0.5.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: 46c7ec10c6ff25dde513b4bbc0201aa897d8d6dab53eb68403704c687ba67050
4
- data.tar.gz: 75825da982f15ad55fec3e28bd233d2553f4b80f70c5ec37e5f2ce64d0730bd2
3
+ metadata.gz: b7494b5ca88ddaadd1c89fccc2b2ee4686e20742f26b90cdbc4906e3e65c73d6
4
+ data.tar.gz: d28e0112af2cc0bd2dfc63c51d6bfb861b306204d9134cc4d202d93cff4d90b1
5
5
  SHA512:
6
- metadata.gz: e2e4b492d8a3015449bedfe712c97a66d30fa3157a4b62a45d6e65d91c89044adc5ad384b8fe3258ad1ca9a8b306f764c8ffac9fd327ff5bca9d794b8a7b4235
7
- data.tar.gz: d5878b0446630d09ade880658c9b8a4cedfca0c79c3af55d420d989a852f6f8acd5f28b8dca313aae79d433d040113a05e2e4e4648c9bdc77172fa281d212864
6
+ metadata.gz: 1a7b1296aa470f2e0ac6415f87a63c26fff354b902c7730a9e7a288dc1f40088fa4d9d5dfaf75c5ac75a7ddb2d58ea99e1fa75d450f0077d9a32cd515e0822ed
7
+ data.tar.gz: 240a9d03c93ea377e3b614b16bfb15989542b2b89f6c08e356c03c71f1e6b5652017c7c18bdb1ecfa8420f4cc26a55dd10cdd7ea38fe60f4a39b23de73e50f85
@@ -80,7 +80,7 @@ module PaperTrail
80
80
  end
81
81
  )
82
82
 
83
- if config.console.ask_for_reason
83
+ if config.console.ask_for_reason && PaperTrail.request.controller_info[:reason].nil?
84
84
  @paper_trail_reason ||= PaperTrail::Rails.get_reason(required: config.console.require_reason)
85
85
  end
86
86
  PaperTrail.update_metadata reason: @paper_trail_reason
@@ -1,7 +1,7 @@
1
1
  module PaperTrail
2
2
  module Rails
3
3
  def self.version
4
- "0.4.0"
4
+ "0.5.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Rick
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paper_trail
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.0.3
131
+ rubygems_version: 3.3.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Integrate with rails console and migrations. In rails console, ask who is