Skip to content

Instantly share code, notes, and snippets.

@phsacramento
Last active February 3, 2016 22:54
Show Gist options
  • Save phsacramento/3be97fda7dc713b3de44 to your computer and use it in GitHub Desktop.
Save phsacramento/3be97fda7dc713b3de44 to your computer and use it in GitHub Desktop.
# collection
# Model.start datetime
# 20/02/2016 16:20
# 20/02/2016 19:20
# 20/03/2016 20:20
Model.find(:all).collect(&:start).uniq
# i would like select only date, rejecting the time in attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment