I just worked this into rails and submitted a pull request:
https://github.com/rails/rails/pull/7155
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Core group.
To view this discussion on the web visit
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