ruby - Sequel way of selecting all records of specific date -



ruby - Sequel way of selecting all records of specific date -

what's best way select records of specific date in sequel ignoring time?

writing clause range day's 0 23:59 seems unlike it. other way do?

use:

post.where(:created_at => (date.beginning_of_day..date.end_of_day))

where date date object

ruby sequel

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -