method
set_test_assigns
v2.3.8 -
Show latest stable
- Class:
ActionController::ProcessWithTest
set_test_assigns()private
No documentation available.
# File actionpack/lib/action_controller/test_process.rb, line 571
def set_test_assigns
@assigns = {}
(instance_variable_names - self.class.protected_instance_variables).each do |var|
name, value = var[1..-1], instance_variable_get(var)
@assigns[name] = value
response.template.assigns[name] = value if response
end
end