render_parent 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -6,7 +6,13 @@ ActionView::Helpers::RenderingHelper.module_eval do
6
6
  template = controller.active_template
7
7
  view_paths.exclusions << template
8
8
  locals["__rendered_depth_#{view_paths.exclusions.count}"] = true
9
- result = render(:file => template.virtual_path, :locals => locals, &block)
9
+ handlers = ActionView::Template::Handlers.extensions.select do |ext|
10
+ ActionView::Template.handler_for_extension(ext) == template.handler
11
+ end
12
+ result = render(:template => template.virtual_path,
13
+ :formats => template.formats,
14
+ :handlers => handlers,
15
+ :locals => locals, &block)
10
16
  view_paths.exclusions.delete template
11
17
  result
12
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_parent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-12 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: -48755631
100
+ hash: -342591055
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements: