about summary refs log tree commit diff
path: root/lib/chewy/strategy/bypass_with_warning.rb
blob: eb6fbaab1676034557f6502f8efcfd3f4c2b8ef2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Chewy
  class Strategy
    class BypassWithWarning < Base
      def update(...)
        Rails.logger.warn 'Chewy update without a root strategy' unless @warning_issued
        @warning_issued = true
      end
    end
  end
end