# File lib/dm-constraints.rb, line 29
    def self.included(model)
      model.extend(ClassMethods)
      model.class_eval "before_class_method :has, :check_delete_constraint_type\n\nif instance_methods.any? { |m| m.to_sym == :destroy }\nbefore :destroy, :check_delete_constraints\nend\n", __FILE__, __LINE__ + 1
    end