edifice 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Edifice
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
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-09-30 00:00:00 Z
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.