locomotive_cms 2.5.6.rc1 → 2.5.6.rc2
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: b39721a2c18764375ea4711a4d204b26c3f3389c
|
4
|
+
data.tar.gz: 71c5f61a9a06e22dbc9f0820628358fd3a26a173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ea3bdd811ca435f4a873b4db1f705f263586323ff8af846cb4c6a2fa949667069d4f1f0ed60b3b946d1dfaabe6cef144fcd2d0b0bc4d17af81c6bec6398163
|
7
|
+
data.tar.gz: 56d022b27bc92ce5326944d2175e13be7bfe12210c75d8646a562b8ba4361fca8f933ddeebce873cf7070c5bad6f5bf81a79eb58763a192b6c7c33ca2696b789
|
@@ -20,9 +20,15 @@ module Locomotive
|
|
20
20
|
path = page_path ? page_path : extract_locale_and_path(error_location)
|
21
21
|
|
22
22
|
# render the locomotive page
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
assigns = {}
|
24
|
+
|
25
|
+
if content_entry
|
26
|
+
slug = content_entry.content_type.slug.singularize
|
27
|
+
entry = content_entry.to_presenter(include_errors: true).as_json
|
28
|
+
assigns[slug] = entry
|
29
|
+
end
|
30
|
+
|
31
|
+
self.controller.send :render_locomotive_page, path, assigns
|
26
32
|
end
|
27
33
|
end
|
28
34
|
|
data/lib/locomotive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotive_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.6.
|
4
|
+
version: 2.5.6.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|