Skip to content

Instantly share code, notes, and snippets.

@spitz-dan-l
Created June 11, 2014 20:11
Show Gist options
  • Save spitz-dan-l/f23b8efd3c4d21e74027 to your computer and use it in GitHub Desktop.
Save spitz-dan-l/f23b8efd3c4d21e74027 to your computer and use it in GitHub Desktop.
dept_prov_apt_types = DepartmentProviderAppointmentType.where("department_provider_id in (?)", @department_providers.map(&:id))
@apt_types = AppointmentType.where("id in (?)", dept_prov_apt_types.map(&:appointment_type_id)).distinct.order(:name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment