module AbstractController::Rendering
def view_assigns
This method should return a hash with assigns.
def view_assigns variables = instance_variables - _protected_ivars variables.each_with_object({}) do |name, hash| hash[name.slice(1, name.length)] = instance_variable_get(name) end end