Fix undefined local variable or method 'ignore_fields'