Skip to content

Instantly share code, notes, and snippets.

@voodootikigod
Created July 3, 2009 15:53
Show Gist options
  • Save voodootikigod/140198 to your computer and use it in GitHub Desktop.
Save voodootikigod/140198 to your computer and use it in GitHub Desktop.
document["accommodations"]["gender_requirements"] = nil
if row["gender-specific"]
if row["gender-specific"].strip == "all-genders"
document["accommodations"]["gender_requirements"] = "All Genders"
elsif ["gender-specific"] && row["gender-specific"].strip == "female-only"
document["accommodations"]["gender_requirements"] = "Female Only"
elsif ["gender-specific"] && row["gender-specific"].strip == "male-only"
document["accommodations"]["gender_requirements"] = "Male Only"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment