Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@palkan palkan released this 04 Dec 14:56

Features

  • Added nested processors support.

Example:

class MyProcessor < Rubanok::Processor
  process :filter do
    match :status do
      having "draft" do
        raw.where(draft: true)
      end

      having "deleted" do
        raw.where.not(deleted_at: nil)
      end
    end
end

MyProcessor.call({filter: {status: "draft"})