method

add_instance_variables_to_assigns

Importance_0
v1.2.6 - Show latest stable - 0 notes - Class: ActionController::Base
add_instance_variables_to_assigns() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.