dcidev_approval 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dcidev_approval.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23cb421610c1a7d394f5039930b9f039188e3ef8620b663296bfe2fcd33f4e66
4
- data.tar.gz: 05d8d685bd2ccc8d6420c991f0bc77fcfa2e7a516bd1d940de42556e1e8c734b
3
+ metadata.gz: dccc3da34c00aa8f2981d62d7ebe9bfe06a504cd4a641931e06ea77cc704bbde
4
+ data.tar.gz: 1434f3cb37dba0c6777654d3fac368d04954acb3d490aa72fdedde00a9222c38
5
5
  SHA512:
6
- metadata.gz: 9df2fd6a8f2cc9f131e816fb47b13defa76cff853da54b6dc21cf9dc74eeaf58ce0d21978bc980635a99330243f26006260fefd6a86c682720fd84da33947081
7
- data.tar.gz: 07675120b1e915524d2e8bf898fc8fe7bd336f10c6ef6bf0eff509975c7593376e378c29a9ea1b70bc376b10367b87e429aa784461d74ced0d4acd34113f312d
6
+ metadata.gz: ccc058f85395914fe3e224e6779e53fdc6574e044e51187a401d1c77828aa99792cca8d7d20e7bcf697827390489025537c5dd91c1a6839553381152cac1b1c9
7
+ data.tar.gz: a6acf538b14fc54816eb0c0a33e7f0ca177e6395625757cc23a4623dc43603ee874bf32635ed9c41ba11ff36d5d4c854c79290ff6139fa0458712cf0b9636e14
@@ -61,7 +61,7 @@ module DcidevApproval
61
61
  last_approve = self.activity_logs.where("activity LIKE '%approv%'").limit(1).order(created_at: :desc).try(:first)
62
62
  last_entry = self.activity_logs.last
63
63
  {
64
- approved_by: last_approve.try(:id) == last_entry.try(:id) ? last_approve.try(:agent).try(:name).to_s + " (#{log.try(:agent).try(:username).to_s} | #{log.try(:agent).try(:roles).try(:first).try(:name)})" : nil,
64
+ approved_by: last_approve.try(:id) == last_entry.try(:id) ? last_approve.try(:agent).try(:name).to_s + " (#{last_approve.try(:agent).try(:username).to_s} | #{last_approve.try(:agent).try(:roles).try(:first).try(:name)})" : nil,
65
65
  approved_at: last_approve.try(:id) == last_entry.try(:id) ? last_approve.try(:created_at) : nil
66
66
  }
67
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcidev_approval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Punto Damar P