Skip to content

Instantly share code, notes, and snippets.

@lessless
Created October 19, 2012 16:07
Show Gist options
  • Save lessless/3919060 to your computer and use it in GitHub Desktop.
Save lessless/3919060 to your computer and use it in GitHub Desktop.
validates :place_id, :title, :level, :start_at, :end_at, :presence => true
validates :start_at, :end_at, :inclusion => {
:in => DateTime.now.beginning_of_day..DateTime.now.end_of_month}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment