aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-03-05 12:12:17 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-03-05 12:12:17 +0000
commitd7627361d3e5c58653b9777eb81acf70c74bae8b (patch)
treecfbe47155b3e75e700dc21b2074d0dcee0637c4b /actionpack/lib/action_controller/base.rb
parent5932357f1983899762e2a81f1c5974c151c6414a (diff)
downloadrails-d7627361d3e5c58653b9777eb81acf70c74bae8b.tar.gz
rails-d7627361d3e5c58653b9777eb81acf70c74bae8b.tar.bz2
rails-d7627361d3e5c58653b9777eb81acf70c74bae8b.zip
Remove unused ActionController::Base.template_class. Closes #10787
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 0651a08cb9..4b6411df30 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -329,9 +329,6 @@ module ActionController #:nodoc:
# Can be set to nil for no logging. Compatible with both Ruby's own Logger and Log4r loggers.
cattr_accessor :logger
- # Determines which template class should be used by ActionController.
- cattr_accessor :template_class
-
# Turn on +ignore_missing_templates+ if you want to unit test actions without making the associated templates.
cattr_accessor :ignore_missing_templates
@@ -1122,10 +1119,6 @@ module ActionController #:nodoc:
end
def initialize_template_class(response)
- unless @@template_class
- raise "You must assign a template class through ActionController.template_class= before processing a request"
- end
-
response.template = ActionView::Base.new(self.class.view_paths, {}, self)
response.template.extend self.class.master_helper_module
response.redirected_to = nil
@@ -1225,7 +1218,7 @@ module ActionController #:nodoc:
end
def add_class_variables_to_assigns
- %w(view_paths logger template_class ignore_missing_templates).each do |cvar|
+ %w(view_paths logger ignore_missing_templates).each do |cvar|
@assigns[cvar] = self.send(cvar)
end
end