Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove ActionController::Base#add_class_variables_to_assigns

  • Loading branch information...
commit caa03a5c870c6a03a35f6dcfaf040a6d689eaee2 1 parent ef8d266
@lifo lifo authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 actionpack/lib/action_controller/base.rb
View
7 actionpack/lib/action_controller/base.rb
@@ -1194,7 +1194,6 @@ def self.action_methods
def add_variables_to_assigns
unless @variables_added
add_instance_variables_to_assigns
- add_class_variables_to_assigns if view_controller_internals
@variables_added = true
end
end
@@ -1215,12 +1214,6 @@ def add_instance_variables_to_assigns
end
end
- def add_class_variables_to_assigns
- %w(view_paths logger).each do |cvar|
- @assigns[cvar] = self.send(cvar)
- end
- end
-
def protected_instance_variables
if view_controller_internals
%w(@assigns @performed_redirect @performed_render)
Please sign in to comment.
Something went wrong with that request. Please try again.