Actions
Bug #7734
closedPost IF - undefined local variable
Description
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
Actions
Like0
Like0