aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-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