Does anyone, by chance, know how to obtain a list of all the defined
activerecord validations at runtime?

In other words, I'd like to query a model for all the fields that are
unique, or required.

I found this: read_inheritable_attribute(:validate), but it seems to be
deprecated in later versions of rails. Thanks so much for any insight.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to