bypass_with_warning.rb 265 B

123456789101112
  1. # frozen_string_literal: true
  2. module Chewy
  3. class Strategy
  4. class BypassWithWarning < Base
  5. def update(...)
  6. Rails.logger.warn 'Chewy update without a root strategy' unless @warning_issued
  7. @warning_issued = true
  8. end
  9. end
  10. end
  11. end