method
add_instance_variables_to_assigns
add_instance_variables_to_assigns()
private
Hide source
# File actionpack/lib/action_controller/base.rb, line 882 def add_instance_variables_to_assigns @@protected_variables_cache ||= protected_instance_variables.inject({}) { |h, k| h[k] = true; h } instance_variables.each do |var| next if @@protected_variables_cache.include?(var) @assigns[var[1..-1]] = instance_variable_get(var) end end