data_importer/app/models/trickest_poc_cve.rb

8 lines
154 B
Ruby
Raw Permalink Normal View History

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