data_importer/app/models/cvemon_cve.rb

6 lines
126 B
Ruby
Raw Normal View History

2022-04-07 04:32:08 -05:00
class CvemonCve < ActiveRecord::Base
def self.from_year(year)
where("cve_id LIKE ?", "CVE-#{year}-%")
end
end