From: "Sega100500 (Сергей Е)" Date: 2013-01-23T21:03:04+09:00 Subject: [ruby-core:51593] [ruby-trunk - Bug #7734][Open] Post IF - undefined local variable 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 # 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/