Module: DynamicActiveModel::DangerousAttributesPatch::ClassMethods

Defined in:
lib/dynamic-active-model/dangerous_attributes_patch.rb

Overview

no-doc

Instance Method Summary collapse

Instance Method Details

#attribute_namesObject



14
15
16
17
18
# File 'lib/dynamic-active-model/dangerous_attributes_patch.rb', line 14

def attribute_names
  names = original_attribute_names
  names.reject! { |name| dangerous_attribute_method?(name) }
  names
end