mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
Remove ActionController::Base#add_class_variables_to_assigns
This commit is contained in:
@@ -1194,7 +1194,6 @@ module ActionController #:nodoc:
|
||||
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 @@ module ActionController #:nodoc:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user