data_importer/app/models/github_poc.rb

8 lines
149 B
Ruby
Raw Permalink Normal View History

2022-04-19 02:37:27 -05:00
# frozen_string_literal: true
class GithubPoc < ActiveRecord::Base
2022-04-19 02:37:27 -05:00
def self.from_year(year)
where('cve_id LIKE ?', "CVE-#{year}-%")
end
end