closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Method: find_or_initialize_by_path(path, attributes = {})

Open martin-schmidt opened this issue 10 years ago • 0 comments

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!.

martin-schmidt avatar Oct 24 '15 11:10 martin-schmidt