module ActiveFedora::AttributeMethods::ClassMethods

def dangerous_class_method?(method_name)

not by any ancestors. (So 'puts' is not dangerous but 'new' is.)
A class method is 'dangerous' if it is already (re)defined by Active Record, but
def dangerous_class_method?(method_name)
  RESTRICTED_CLASS_METHODS.include?(method_name.to_s) || class_method_defined_within?(method_name, Base)
end