Created
July 11, 2012 20:43
-
-
Save vanstee/3093252 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def has_all_required_fields? | |
if jurisdiction.required_fields.present? | |
jurisdiction.required_fields.all? do |required_field| | |
reflect_on_association(required_field.class_name).send("#{required_field.field_name}?") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment