method
add_instance_variables_to_assigns
add_instance_variables_to_assigns()
private
Hide source
# File actionpack/lib/action_controller/base.rb, line 1154 def add_instance_variables_to_assigns @@protected_variables_cache ||= Set.new(protected_instance_variables) instance_variables.each do |var| next if @@protected_variables_cache.include?(var) @assigns[var[1..-1]] = instance_variable_get(var) end end