civo 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/base.rb +2 -2
- data/lib/civo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca6e6843932981e134d7eb3490c27eccace57104
|
4
|
+
data.tar.gz: 327412dae1e786d7a9428c0b3606f5e8ab127c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c10ed6da5e41af6d59b084a60abd650fae069874d59361a06160d79885832ba344268db19fd382da39a06300c40a0232ec4474b598d2ba28577aaf36d774705
|
7
|
+
data.tar.gz: 2467591007648223b7a510ce2d790aa7f28d1f6ad3223a43d980274bb52d18e5d5b62bcd48b57ff277b73d5f55e2a20ff77111baf4d6db6747b7b63cd2a69111
|
data/app/models/civo/base.rb
CHANGED
@@ -15,11 +15,11 @@ module Civo
|
|
15
15
|
return
|
16
16
|
end
|
17
17
|
|
18
|
-
user_id = request.post_params[:user_id] # Don't delete the param in case it's needed by an action
|
18
|
+
user_id = (request.post_params[:user_id] || request.get_params[:user_id]) # Don't delete the param in case it's needed by an action
|
19
19
|
if user_id.present?
|
20
20
|
request.headers["X-Civo-UserID"] = user_id
|
21
21
|
end
|
22
|
-
account_id = request.post_params[:account_id] # Don't delete the param in case it's needed by an action
|
22
|
+
account_id = (request.post_params[:account_id] || request.get_params[:account_id]) # Don't delete the param in case it's needed by an action
|
23
23
|
if account_id.present?
|
24
24
|
request.headers["X-Civo-AccountID"] = account_id
|
25
25
|
end
|
data/lib/civo/version.rb
CHANGED