Rails helper for making date fields act like boolean flags and vice-versa.