Skip to content

Instantly share code, notes, and snippets.

@Rhainur

Rhainur/test.rb Secret

Created July 29, 2015 13:02
Show Gist options
  • Save Rhainur/9ac7e024bfc59e0ad21f to your computer and use it in GitHub Desktop.
Save Rhainur/9ac7e024bfc59e0ad21f to your computer and use it in GitHub Desktop.
@date_gt = params[:date_gt].present? ? DateTime.strptime(params[:date_gt], '%m/%d/%Y') : 6.months.ago.to_date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment