ilog 0.4.3 → 0.4.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e73d51995d9c3182fc1c40392746311cc47bd41139316eb097fd22e2a23716
|
4
|
+
data.tar.gz: 0e839b7a29decd8c352c0c4d1f379ea2750498ea67dd72de7d7071df5199efca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6453b49cc4ff16763e448bcd129e2d4a506ed20b10f82904dc3284d7defe3ecf6b88b4628fb281a57cd6f52e3bf6de41174676aed36a1a131e9208e6993fdc24
|
7
|
+
data.tar.gz: f56f6edffb66db6b19dbb318840054e47ccc4b52232103b64762794d4e24743bc489e94301d944d517e43fc427c0ca9c7fd2a54dffcebe93cd77e439e099642c
|
@@ -9,7 +9,7 @@ module Ilog
|
|
9
9
|
def call(params)
|
10
10
|
set_database params[:domain]
|
11
11
|
post = ::Post.find(params[:id])
|
12
|
-
post.namespace = params[:domain]
|
12
|
+
post.namespace = get_database params[:domain]
|
13
13
|
file = post.get_asset(params)
|
14
14
|
puts file.to_s
|
15
15
|
self.headers.merge!({ 'Content-Type' => MIME::Types.type_for(file.path).first.content_type })
|
@@ -11,7 +11,7 @@ module Ilog
|
|
11
11
|
req = request.env['HTTP_ACCEPT']
|
12
12
|
if req.include? 'application/json'
|
13
13
|
post = ::Post.find(params[:id])
|
14
|
-
Post.namespace =
|
14
|
+
Post.namespace = set_database params[:domain]
|
15
15
|
self.format = :json
|
16
16
|
self.body = post.to_json(:include => ::Post::DIMENSIONS + ::Post::GROUPINGS, :methods => [:content])
|
17
17
|
else
|
@@ -37,7 +37,7 @@ module Ilog
|
|
37
37
|
data[index] = JSON.parse(piece.to_json(:include => ['title', 'slug', 'timestamp', 'peoples', 'keywords', 'thumbnail'], :methods => [:kind, :uniq]))
|
38
38
|
if (item.id == timestamp.id)
|
39
39
|
post = Object.const_get(timestamp.timestampable_type.capitalize).find(timestamp.timestampable_id)
|
40
|
-
post.namespace =
|
40
|
+
post.namespace = get_database params[:domain]
|
41
41
|
data[index][:content] = post.content
|
42
42
|
data[index][:view] = 'post_body'
|
43
43
|
end
|
data/lib/ilog/version.rb
CHANGED