C0 code coverage information
Generated on Sun Jun 11 23:15:17 CEST 2006 with rcov 0.6.0
Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
| Name |
Total lines |
Lines of code |
Total coverage |
Code coverage |
|
lib/renderfix.rb
|
32
|
25
|
|
|
1 #
2 # Rails, by default, only looks for views in a single location, usually in app/views.
3 # However, we'd *really* like to be able to override views via themes, and that means
4 # adding something like a search path. So here it is.
5
6 module ActionView
7 class Base
8 alias_method :__render_file, :render_file
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
9
10 def render_file(template_path, use_full_path = true, local_assigns = {})
Calls
1 #<Class:Object>#method_added at vendor/rails/actionpack/lib/action_view/vendor/builder/blankslate.rb:47
Called by
57 vendor/rails/actionpack/lib/action_controller/base.rb:655 in 'ActionController::Base#render_file'
48 vendor/rails/actionpack/lib/action_view/base.rb:220 in 'ActionView::Base#render'
38 vendor/rails/actionpack/lib/action_controller/layout.rb:226 in 'ActionController::Layout#render_without_benchmark'
6 vendor/rails/actionpack/lib/action_controller/layout.rb:226 in 'ActionController::Layout#render_with_a_layout'
11 search_path = [
12 "../themes/#{config[:theme]}/views", # for components
Calls
149 Object#config at app/models/configuration.rb:18
149 ConfigManager#[] at app/models/config_manager.rb:18
13 "../../themes/#{config[:theme]}/views", # for normal views
Calls
149 Object#config at app/models/configuration.rb:18
149 ConfigManager#[] at app/models/config_manager.rb:18
14 "." # fallback
15 ]
16
17 if use_full_path
18 search_path.each do |prefix|
19 theme_path = prefix+'/'+template_path
20 begin
21 template_extension = pick_template_extension(theme_path)
Calls
446 ActionView::Base#pick_template_extension at vendor/rails/actionpack/lib/action_view/base.rb:273
22 rescue ActionView::ActionViewError => err
23 next
24 end
25 return __render_file(theme_path, use_full_path, local_assigns)
Calls
149 ActionView::Base#__render_file at vendor/rails/actionpack/lib/action_view/base.rb:191
26 end
27 else
28 __render_file(template_path, use_full_path, local_assigns)
29 end
30 end
31 end
32 end
Generated using the rcov code coverage analysis tool for Ruby version 0.6.0.