diff options
author | Henrik Nyh <henrik@nyh.se> | 2016-05-09 16:06:19 +0100 |
---|---|---|
committer | Henrik Nyh <henrik@nyh.se> | 2016-05-11 21:25:06 +0100 |
commit | f005202972cdb864327c854404fd18510e00f963 (patch) | |
tree | 095b34506f4c1a86dac30186ff1e9e862617aa88 /activerecord/lib/active_record/suppressor.rb | |
parent | a0b3de3002bd9f608b3a9e41e702762b10430207 (diff) | |
download | rails-f005202972cdb864327c854404fd18510e00f963.tar.gz rails-f005202972cdb864327c854404fd18510e00f963.tar.bz2 rails-f005202972cdb864327c854404fd18510e00f963.zip |
Introduce Date#all_day
Useful for queries like:
Item.where(created_at: Date.current.all_day)
There was already a Time#all_day with the same behaviour, but for
queries like the above, Date is more convenient.
Diffstat (limited to 'activerecord/lib/active_record/suppressor.rb')
0 files changed, 0 insertions, 0 deletions