diff --git a/lib/rdoc/generator/template/rails/_context.rhtml b/lib/rdoc/generator/template/rails/_context.rhtml
index 4e5bc6d6..503ece06 100644
--- a/lib/rdoc/generator/template/rails/_context.rhtml
+++ b/lib/rdoc/generator/template/rails/_context.rhtml
@@ -1,5 +1,5 @@
- <% unless (description = context.description).empty? %>
+ <% unless (description = @context.description).empty? %>
<%= description %>
@@ -7,10 +7,10 @@
<%# File only: requires %>
- <% unless context.requires.empty? %>
+ <% unless @context.requires.empty? %>
Required Files
- <% context.requires.each do |req| %>
+ <% @context.requires.each do |req| %>
- <%= full_name req.name %>
<% end %>
@@ -18,7 +18,7 @@
<%# Module only: ancestors %>
- <% unless context.is_a?(RDoc::TopLevel) || (ancestors = module_ancestors(context)).empty? %>
+ <% unless @context.is_a?(RDoc::TopLevel) || (ancestors = module_ancestors(@context)).empty? %>
Inherits From
<% ancestors.each do |kind, ancestor| %>
@@ -31,7 +31,7 @@
<% end %>
- <% sections = context.sections.select { |s| s.title }.sort_by{ |s| s.title.to_s } %>
+ <% sections = @context.sections.select { |s| s.title }.sort_by{ |s| s.title.to_s } %>
<% unless sections.empty? then %>
Sections
@@ -42,11 +42,11 @@
<% end %>
- <% unless context.method_list.empty? %>
+ <% unless @context.method_list.empty? %>
Methods
- <% group_by_first_letter(context.method_list).each do |letter, methods| %>
+ <% group_by_first_letter(@context.method_list).each do |letter, methods| %>
- <%= letter %>
-
@@ -64,7 +64,7 @@
- <% context.each_section do |section, constants, attributes| %>
+ <% @context.each_section do |section, constants, attributes| %>
<% if section.title then %>
@@ -117,7 +117,7 @@
<%
- context.methods_by_type(section).each do |type, visibilities|
+ @context.methods_by_type(section).each do |type, visibilities|
next if visibilities.empty?
visibilities.each do |visibility, methods|
@@ -174,11 +174,11 @@
<% end %><%# context.methods_by_type %>
<% end %><%# context.each_section %>
- <% unless context.classes_and_modules.empty? %>
+ <% unless @context.classes_and_modules.empty? %>
Namespace
- <% (context.modules.sort + context.classes.sort).each do |mod| %>
+ <% (@context.modules.sort + @context.classes.sort).each do |mod| %>
-
<%= mod.type %>
<%= link_to mod %>
diff --git a/lib/rdoc/generator/template/rails/_head.rhtml b/lib/rdoc/generator/template/rails/_head.rhtml
index 5be0661a..f298ec24 100644
--- a/lib/rdoc/generator/template/rails/_head.rhtml
+++ b/lib/rdoc/generator/template/rails/_head.rhtml
@@ -1,4 +1,4 @@
-<%= base_tag_for_context(context) %>
+<%= base_tag_for_context(@context) %>
@@ -11,13 +11,13 @@
-<% if canonical = canonical_url(context) %>
+<% if canonical = canonical_url(@context) %>
">
<% end %>
-<% if description = page_description(context.description) %>
+<% if description = page_description(@context.description) %>
<% end %>
diff --git a/lib/rdoc/generator/template/rails/class.rhtml b/lib/rdoc/generator/template/rails/class.rhtml
index 8f630ba1..205c5e2a 100644
--- a/lib/rdoc/generator/template/rails/class.rhtml
+++ b/lib/rdoc/generator/template/rails/class.rhtml
@@ -2,28 +2,28 @@
- <%= page_title klass.full_name %>
+ <%= page_title @context.full_name %>
- <%= include_template '_head.rhtml', {:context => klass, :tree_keys => klass.full_name.split('::') } %>
+ <%= render "_head.rhtml", { :tree_keys => @context.full_name.split('::') } %>
-
+
Skip to Content
Skip to Search
- <%= include_template '_panel.rhtml' %>
+ <%= render "_panel.rhtml" %>
-
<%= klass.type %> <%= module_breadcrumbs klass %>
+ <%= @context.type %> <%= module_breadcrumbs @context %>
- <%= include_template '_context.rhtml', {:context => klass} %>
+ <%= render "_context.rhtml" %>
Definition files
- <%= more_less_ul klass.in_files.map { |file| link_to file }, 5..9 %>
+ <%= more_less_ul @context.in_files.map { |file| link_to file }, 5..9 %>
diff --git a/lib/rdoc/generator/template/rails/file.rhtml b/lib/rdoc/generator/template/rails/file.rhtml
index cfb7b3aa..c2a5637b 100644
--- a/lib/rdoc/generator/template/rails/file.rhtml
+++ b/lib/rdoc/generator/template/rails/file.rhtml
@@ -2,31 +2,31 @@
- <%= page_title file.name %>
+ <%= page_title @context.name %>
- <%= include_template '_head.rhtml', {:context => file, :tree_keys => [] } %>
+ <%= render "_head.rhtml", { :tree_keys => [] } %>
-
+
Skip to Content
Skip to Search
- <%= include_template '_panel.rhtml' %>
+ <%= render "_panel.rhtml" %>
- <%= "
" if file.comment.empty? %>
- <%= full_name file %>
- <%= "
" if file.comment.empty? %>
+ <%= "" if @context.comment.empty? %>
+ <%= full_name @context %>
+ <%= "
" if @context.comment.empty? %>
- <% if source_url = github_url(file.relative_name) %>
+ <% if source_url = github_url(@context.relative_name) %>
<%= link_to_external "View on GitHub", source_url %>
<% end %>
- <%= include_template '_context.rhtml', {:context => file} %>
+ <%= render "_context.rhtml" %>
diff --git a/lib/rdoc/generator/template/rails/file_links.rhtml b/lib/rdoc/generator/template/rails/file_links.rhtml
index 2cbb4f9b..376dcc2b 100644
--- a/lib/rdoc/generator/template/rails/file_links.rhtml
+++ b/lib/rdoc/generator/template/rails/file_links.rhtml
@@ -6,7 +6,7 @@
- <% @files.each do |file| %>
+ <% @context.each do |file| %>
<%= file.relative_name %>
<% end %>
diff --git a/lib/rdoc/generator/template/rails/index.rhtml b/lib/rdoc/generator/template/rails/index.rhtml
index 32ab2f72..88ac6c42 100644
--- a/lib/rdoc/generator/template/rails/index.rhtml
+++ b/lib/rdoc/generator/template/rails/index.rhtml
@@ -4,17 +4,17 @@
<%= page_title %>
- <%= include_template '_head.rhtml', {:context => index, tree_keys: []} %>
+ <%= render "_head.rhtml", {tree_keys: []} %>
Skip to Content
Skip to Search
- <%= include_template '_panel.rhtml' %>
+ <%= render "_panel.rhtml" %>
- <%= include_template '_context.rhtml', {:context => index } %>
+ <%= render "_context.rhtml" %>