[Rails-core] Remove AV::Resolver/PathSet/LookupContext#find_all methods

2012-07-03 Thread thedarkone
There is not a single line of code in all of Rails that makes use of the `.find_all` template API, that doesn't look like this: `lookup.find_all(*args).first`. Getting rid of the unnecessary Array handling would simplify the implementation. Therefore I would like to propose to deprecate and

Re: [Rails-core] Validate absence of

2012-07-03 Thread Roberto V. Angel
Assume you have a tree, where you want to have set attributes only, if a node is a root. Otherwise the model should not accept entries for a specific attribute. I.e. if you have a tree of categories and want to have a locale attribute only on roots you could do s'thing like this: class