lukejagodzinski / meteor-astronomy-validators

https://atmospherejs.com/jagi/astronomy-validators
MIT License
11 stars 13 forks source link

Is there any way I can get the list of choices defined from a field in a class? #40

Closed Lepozepo closed 8 years ago

Lepozepo commented 8 years ago

I know I could save the list outside of the context of the field but it would be cleaner if I could tap into the field list directly. Is there a method implemented for this? Thank you in advance!

Lepozepo commented 8 years ago

Found it under CLASS.constructor.getValidator("field-name") for each class, sweet!

lukejagodzinski commented 8 years ago

Yep exactly :)