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: b03080f0869d8c8dffe1f7394f9410ddcfe8b9e0
4
- data.tar.gz: 8649c776cdb126fd7c6ba67ad7578c84d71a19a9
3
+ metadata.gz: b39721a2c18764375ea4711a4d204b26c3f3389c
4
+ data.tar.gz: 71c5f61a9a06e22dbc9f0820628358fd3a26a173
5
5
  SHA512:
6
- metadata.gz: 395d855f2fd564535e365289afb551f38ee38761f146e459a93c7b5f39dbe8b95f51d1fd07b1b5fd0dfc3fd0ce90202b4c70cfa7e21f57bedbf0d325e5b3fb3e
7
- data.tar.gz: b20cf87aac7025dec0241910f99e050be41b39ae27ffb92d9cd9db2dbea1b590576abdd2e3a3510980e66fc37e66feb61c8d830c0186707e731cbacfe98cd89a
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
- self.controller.send :render_locomotive_page, path, {
24
- content_entry.content_type.slug.singularize => content_entry.to_presenter(include_errors: true).as_json
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
 
@@ -1,3 +1,3 @@
1
1
  module Locomotive #:nodoc
2
- VERSION = '2.5.6.rc1'
2
+ VERSION = '2.5.6.rc2'
3
3
  end
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.rc1
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-19 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake