Skip to content

Instantly share code, notes, and snippets.

@vanstee
Created July 11, 2012 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanstee/3093252 to your computer and use it in GitHub Desktop.
Save vanstee/3093252 to your computer and use it in GitHub Desktop.
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