closure_tree
closure_tree copied to clipboard
Method: find_or_initialize_by_path(path, attributes = {})
I think it would be nice to have a class method find_or_initialize_by_path(path, attributes = {}), which behaves like ActiveRecord's find_or_initialize_by(). It should return a node whose name path is path, but should not create the node or any ancestor until save or save!.