Return field names that could cause destructive things to happen if defined in a Mongoid::Document.
Get the destructive fields.
config.destructive_fields
Returns:
An array of bad field names.
96 97 98
# File 'lib/mongoid/config.rb', line 96 def destructive_fields Components.prohibited_methods end