toptal/chewy

View on GitHub
lib/chewy/strategy/bypass.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Chewy
  class Strategy
    # This strategy basically does nothing.
    #
    #   Chewy.strategy(:bypass) do
    #     User.all.map(&:save) # Does nothing here
    #     # Does not update index all over the block.
    #   end
    #
    class Bypass < Base
      def update(type, objects, _options = {}); end
    end
  end
end