rooftop-rails 0.1.5.2 → 0.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 675e51e7d242214efb708f8e18d0d6f839e63348
|
4
|
+
data.tar.gz: bac499634e4b296d6b9b5eee911badcbeaf2eaa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d5588ad8e65956c7d14c95f7dfd4a0357a90a530512b4d855adf07f7e4b818548bbaf5e1c44333a2b1358d48aab6361b6ab2a30dab6c735af6beb5e3d608b6c
|
7
|
+
data.tar.gz: 323ac56a44218a528b96b0e026c41f28198d789651e41d5757b54e7e306fd34cad365d6e30d214c48481de9468f386009158c3cc95e175ab6e18ae86e6b09850
|
@@ -19,8 +19,12 @@ class Rooftop::Rails::WebhooksController < ApplicationController
|
|
19
19
|
# implement your own and subscribe in an initializer.
|
20
20
|
ActiveSupport::Notifications.instrument("rooftop.#{update_type}", params)
|
21
21
|
|
22
|
-
#must return an ok
|
23
|
-
|
22
|
+
#must return an ok - check Rails version to determine whether to return nothing or head response.
|
23
|
+
if Rails.version =~ /^4/
|
24
|
+
render nothing: true
|
25
|
+
else
|
26
|
+
head :ok
|
27
|
+
end
|
24
28
|
end
|
25
29
|
|
26
30
|
def debug
|