edifice 0.7.2 → 0.7.3
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.
- data/lib/edifice/renderer.rb +1 -1
- data/lib/edifice/version.rb +1 -1
- metadata +4 -4
data/lib/edifice/renderer.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Edifice
|
|
|
12
12
|
class TemplateRenderer < ActionView::TemplateRenderer
|
|
13
13
|
def render_template(template, layout_name = nil, locals = {})
|
|
14
14
|
# ensure we aren't rendering e.g. text
|
|
15
|
-
if template.respond_to?(:virtual_path)
|
|
15
|
+
if template.respond_to?(:virtual_path) and @view.controller and @view.controller.respond_to?(:set_edifice_names)
|
|
16
16
|
@view.controller.set_edifice_names(template.virtual_path.name,
|
|
17
17
|
template.virtual_path.prefix, (layout_name.nil? ? '' : layout_name.split('/').last))
|
|
18
18
|
end
|
data/lib/edifice/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: edifice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
|
-
-
|
|
10
|
-
version: 0.7.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.7.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tom Coleman
|
|
@@ -17,7 +17,7 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2011-
|
|
20
|
+
date: 2011-10-07 00:00:00 Z
|
|
21
21
|
dependencies: []
|
|
22
22
|
|
|
23
23
|
description: The idea here is to communicate which view is rendering to the javascript so that we can call the correct javascript files in an automagical way.
|