Issue #7734 has been reported by Sega100500 (妊快把忍快抄 圻).

----------------------------------------
Bug #7734: Post IF - undefined local variable
https://bugs.ruby-lang.org/issues/7734

Author: Sega100500 (妊快把忍快抄 圻)
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 1.9.3
ruby -v: 1.9.3p374


hash[:tree] = tree if (tree = _get_path_tree_array(params, path, deep + 1)) && ! tree.empty?

# => undefined local variable or method `tree' for #<Content:0x92d96b0>

but

if (tree = _get_path_tree_array(params, path, deep + 1)) && ! tree.empty?
  hash[:tree] = tree
end

# => WORK FINE!


Content - is a: class Content < ActiveRecord::Base in Ruby on Rails 3.2.11



-- 
http://bugs.ruby-lang.org/