Flowdock
method

add_instance_variables_to_assigns

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