method

detect_negative_condition!

rails latest stable - Class: ActiveRecord::Enum

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

detect_negative_condition!(method_name)
private

No documentation available.

# File activerecord/lib/active_record/enum.rb, line 267
      def detect_negative_condition!(method_name)
        if method_name.start_with?("not_") && logger
          logger.warn "An enum element in #{self.name} uses the prefix 'not_'."              " This will cause a conflict with auto generated negative scopes."
        end
      end