Skip to content

Commit 26b2119

Browse files
committed
Improve changelog
1 parent 8fd6961 commit 26b2119

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22

33
## [2.0.8]
44

5-
* Prevent typecasting of date into timestamp when `:date` filter has a block
65
* Rescue StatementInvalid when guessing column type from a query
6+
* Prevent typecasting of date into timestamp when `:date` filter has a block
7+
8+
``` ruby
9+
class MyGrid < Datagrid::Base
10+
scope { User }
11+
12+
filter(:created_at, :date) do |scope, value|
13+
value.is_a?(Date) # => true
14+
scope.joins(:registration).where(registrations: { registration_date: value })
15+
end
16+
end
17+
```
718

819
## [2.0.7]
920

0 commit comments

Comments
 (0)