method
detect_negative_condition!
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Enum
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