File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 strategy :
1212 matrix :
1313 include :
14+ - ruby : ' 3.4'
15+ active-model : ' 8.0.2'
16+ couchbase : ' 7.2.3'
1417 - ruby : ' 3.3'
1518 active-model : ' 8.0.0'
1619 couchbase : ' 7.2.3'
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ def cast(value)
77 end
88
99 def serialize ( value )
10- value &.iso8601 ( @precision )
10+ value &.
11+ iso8601 ( @precision || 0 )
1112 end
1213 end
1314 end
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def quote(value)
133133 if [ String , Date ] . any? { |clazz | value . is_a? ( clazz ) }
134134 "'#{ N1ql . sanitize ( value ) } '"
135135 elsif [ DateTime , Time ] . any? { |clazz | value . is_a? ( clazz ) }
136- formatedDate = value &.iso8601 ( @precision )
136+ formatedDate = value &.iso8601 ( @precision || 0 )
137137 "'#{ N1ql . sanitize ( formatedDate ) } '"
138138 elsif value . is_a? Array
139139 "[#{ value . map { |v |quote ( v ) } . join ( ', ' ) } ]"
You can’t perform that action at this time.
0 commit comments