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.
- checksums.yaml +4 -4
- data/lib/dcidev_approval.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dccc3da34c00aa8f2981d62d7ebe9bfe06a504cd4a641931e06ea77cc704bbde
|
4
|
+
data.tar.gz: 1434f3cb37dba0c6777654d3fac368d04954acb3d490aa72fdedde00a9222c38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccc058f85395914fe3e224e6779e53fdc6574e044e51187a401d1c77828aa99792cca8d7d20e7bcf697827390489025537c5dd91c1a6839553381152cac1b1c9
|
7
|
+
data.tar.gz: a6acf538b14fc54816eb0c0a33e7f0ca177e6395625757cc23a4623dc43603ee874bf32635ed9c41ba11ff36d5d4c854c79290ff6139fa0458712cf0b9636e14
|
data/lib/dcidev_approval.rb
CHANGED
@@ -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 + " (#{
|
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
|