I never realized you could query ActiveRecord dates with open-ended ranges until today.
User.where(created_at: ..Time.current)
Or .where(created_at: Time.current..)
#til
User.where(created_at: ..Time.current)
Or .where(created_at: Time.current..)
#til
Comments
Nice use case for them.