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