We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fd6961 commit 26b2119Copy full SHA for 26b2119
CHANGELOG.md
@@ -2,8 +2,19 @@
2
3
## [2.0.8]
4
5
-* Prevent typecasting of date into timestamp when `:date` filter has a block
6
* Rescue StatementInvalid when guessing column type from a query
+* 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
+```
18
19
## [2.0.7]
20
0 commit comments