v3.1.0
Added
-
.nullify
that turns the result set of any relation into an empty set. Analogue ofActiveRecord#none
(@ianks + @flash-gordon)# Don't forget to activate the plugin conf.relation(:users) do use :nullify end users.nullify.count # => will always be 0 users.nullify.to_a # => will always be empty ([])
Fixed
- Make
Relation#wrap
respect association views (@ianks) - Primitive JSON-compatible values such as Integer and String are automatically coerced to correct JSONB values and back if you're using a recent Sequel version (>= 5.2.0) (@flash-gordon)
- Properly qualify relations when in
Relation#union
(@ianks) Relation#query
no longer removes order in the relation (@DNNX)