Method: Mongoid::Config#destructive_fields

Defined in:
lib/mongoid/config.rb

#destructive_fieldsArray<String>

Return field names that could cause destructive things to happen if defined in a Mongoid::Document.

Examples:

Get the destructive fields.

config.destructive_fields

Returns:



96
97
98
# File 'lib/mongoid/config.rb', line 96

def destructive_fields
  Components.prohibited_methods
end