Skip to content

Instantly share code, notes, and snippets.

@mikebannister
Created November 1, 2011 04:12
Show Gist options
  • Save mikebannister/1329903 to your computer and use it in GitHub Desktop.
Save mikebannister/1329903 to your computer and use it in GitHub Desktop.
scope :before_date, lambda { |date|
where("shift_date >= ?").where(:shift_status => nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment