Re: [Rails-core] Validate absence of

2012-07-25 Thread Roberto V. Angel
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

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