Skip to content

Commit

Permalink
Added missing URL#vulnerabilities association (closes #51).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed May 4, 2023
1 parent 9a3842e commit 1de0900
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/ronin/db/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ class URL < ActiveRecord::Base
# @return [Array<Credentials>]
has_many :credentials, through: :web_credentials

# @!attribute [rw] vulnerabilities
# The vulnerabilities which reference the URL.
#
# @return [Array<Vulnerability>]
#
# @since 0.2.0
has_many :vulnerabilities, dependent: :destroy

#
# Searches for all URLs using HTTP.
#
Expand Down Expand Up @@ -492,3 +500,4 @@ def self.normalized_path(uri)
require 'ronin/db/url_query_param_name'
require 'ronin/db/url_query_param'
require 'ronin/db/web_credential'
require 'ronin/db/vulnerability'

0 comments on commit 1de0900

Please sign in to comment.