module MetasploitDataModels::ActiveRecordModels::VulnAttempt
  def self.included(base)
    base.class_eval {
      belongs_to :vuln, :class_name => "Mdm::VulnAttempt", :counter_cache => :vuln_attempt_count
      validates :vuln_id, :presence => true
    }
  end
end

module MetasploitDataModels::ActiveRecordModels::VulnAttempt
  def self.included(base)
    base.class_eval {
      belongs_to :vuln, :class_name => "Mdm::Vuln", :counter_cache => :vuln_attempt_count
      validates :vuln_id, :presence => true
    }
  end
end

Fix a bad classname that prevented cache_counters from working
Fix a bad classname that prevented cache_counters from working
