pipedrive_jetrockets 0.0.42 → 0.0.43
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e2f4fc38579bbebe618715e0a21eb2a4dc90979fa5fbbd3d6f8d3316c5097c4
|
4
|
+
data.tar.gz: 692b6fa9b125bb1f7df6e9a46b05006cd6308135fd6565d424d172e35e42a9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7734d0e6183461052a36321845f415515a8094148bd5c70b7d4cdde889b3de032da233ff00d117caade0af47cca9bf243495415a1a8e88d93f0a7ee260982fa
|
7
|
+
data.tar.gz: aaf383858e88d6c231c869e1e98ddbcafc7fc0be888560351d76517b8d72efd9d032957dc0cd1e0ccc4848ad1cfd07c96fbe9961f5ee1884fce1f09dff1511bb
|
@@ -2,13 +2,7 @@ module PipedriveJetrockets
|
|
2
2
|
class EventsController < ApplicationController
|
3
3
|
skip_before_action :verify_authenticity_token
|
4
4
|
def deal_updated
|
5
|
-
|
6
|
-
previous = params[:previous]
|
7
|
-
if !current[:org_id].nil? && previous[:org_id].nil?
|
8
|
-
ActiveSupport::Notifications.instrument "organisation_added", { organisation_id: current[:org_id], deal_id: current[:id]}
|
9
|
-
elsif current[:stage_id] != previous[:stage_id]
|
10
|
-
ActiveSupport::Notifications.instrument "deal_moved", { deal_id: current[:id], previous_stage: previous[:stage_id], current_stage: current[:stage_id]}
|
11
|
-
end
|
5
|
+
ActiveSupport::Notifications.instrument "deal_updated", {deal: params[:current]}
|
12
6
|
end
|
13
7
|
end
|
14
8
|
end
|