mbj / vanguard

External validations for ruby objects
MIT License
120 stars 4 forks source link

Virtus Integration. #4

Open maxigit opened 11 years ago

maxigit commented 11 years ago

I'm trying to move from aequitas 0.2 to the last version which seems to be this one. However I'm using Virtus integration. It doens't seem to work anymore, am I missing something or is it something which is not supported anymore (or in an external library) ?

Many thanks

mbj commented 11 years ago

It is currently not planned, but pull request are accepted! But please talk to @solnic before to make sure there is a generic way to add options in virtus that get consumed by another lib.

lailsonbm commented 11 years ago

Fantastic. I also would like to see this. Maybe I work on it. =)

solnic commented 11 years ago

In virtus 1.0.0 (to be released before end of the month) it’ll be possible to easily extend attributes with custom functionality. This includes adding custom options and constraints to the attribute types (via axiom-types).