Skip to content

Commit

Permalink
Remove ActionController::Base#add_class_variables_to_assigns
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Apr 21, 2008
1 parent ef8d266 commit caa03a5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions actionpack/lib/action_controller/base.rb
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit caa03a5

Please sign in to comment.