ilog 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ilog/controllers/index/digital.rb +5 -1
- data/lib/ilog/version.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: 4a4752364f44bb7034936c2de7310e865fe84d3603d07ec04146bfba7bd9da53
|
|
4
|
+
data.tar.gz: 2ee95f0dbf5e9c13a2c3b7c4d9a2e69207a828eccbcca876136b42d0f51ceff4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb51115614dc0e745136b66d670168b4d306c36c9a55c885ba0ee71ff9b8a1a72ecbace46410543e4741db6778aeea1ec67a534ed851abd868d7d0887376b371
|
|
7
|
+
data.tar.gz: 978f934243659f140278817cef7509be446f0fc2a94cedd48e009b47c5b97195c3ab56a07543e2aa9cc03c39b8a0953a28fffeb7d1d439392f8ab78edcf75a36
|
|
@@ -9,13 +9,17 @@ module Ilog
|
|
|
9
9
|
expose :namespace, :vue_config
|
|
10
10
|
def call(params)
|
|
11
11
|
set_database params[:domain]
|
|
12
|
+
|
|
13
|
+
# variable set for front-end vue
|
|
12
14
|
@vue_config = Ilog.configuration
|
|
15
|
+
|
|
16
|
+
# rest of action
|
|
13
17
|
@namespace = get_namespace params[:domain]
|
|
14
18
|
req = request.env['HTTP_ACCEPT']
|
|
15
19
|
|
|
16
20
|
if req.include? 'application/json'
|
|
17
21
|
post = ::Post.find(params[:id])
|
|
18
|
-
post.namespace =
|
|
22
|
+
post.namespace = get_database params[:domain]
|
|
19
23
|
self.format = :json
|
|
20
24
|
self.body = post.to_json(:include => ::Post::DIMENSIONS + ::Post::GROUPINGS, :methods => [:content])
|
|
21
25
|
end
|
data/lib/ilog/version.rb
CHANGED