Skip to content

v3.1.0

Compare
Choose a tag to compare
@solnic solnic released this 16 Dec 07:26
v3.1.0
9c3d639

Added

  • .nullify that turns the result set of any relation into an empty set. Analogue of ActiveRecord#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)

Compare v3.0.1...v3.1.0