productive 0.5.12 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/productive/resources/base_account.rb +8 -18
- data/lib/productive/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: e1ac03df1bc7818717c5ade878db3237a2d6089c
|
4
|
+
data.tar.gz: dd48a757c4fe46bb6aee4bc2b5cad46ee8ca9737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ac463a2480aedbd27133b2ab74d9e16485e01241987510ad97a0894d5a9684776ec4529c34c81ef20a0aca8febd1e6754be1455e3957927f61ea8f71e26886b
|
7
|
+
data.tar.gz: 318568fff4aedf3e619796b2b356bfe45d956793e1528422fbaccfd4f93e24ab9a42b6be66315946ef4313c152f97f032e7afea30a197270da2e2d4e3b142040
|
@@ -1,23 +1,13 @@
|
|
1
1
|
module Productive
|
2
2
|
class BaseAccount < Base
|
3
|
-
def self.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
def self.connection_object
|
12
|
-
RequestStore.store[:json_api_client_base_account_connection_object]
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.connection_object=(connection)
|
16
|
-
RequestStore.store[:json_api_client_base_account_connection_object] = connection
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.site_setup(config)
|
20
|
-
self.site = File.join config.base_url, config.account_id.to_s, '/'
|
3
|
+
def self.connection_options_setup(config)
|
4
|
+
if config.connection_options[:headers].nil?
|
5
|
+
config.connection_options[:headers] = { 'X-Organization-Id' => config.account_id }
|
6
|
+
else
|
7
|
+
config.connection_options[:headers]['X-Organization-Id'] = config.account_id.to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
super(config)
|
21
11
|
end
|
22
12
|
end
|
23
13
|
end
|
data/lib/productive/version.rb
CHANGED