data_importer/app/models/cvemon_cve.rb

8 lines
149 B
Ruby
Raw Normal View History

2022-04-19 02:37:27 -05:00
# frozen_string_literal: true
2022-04-07 04:32:08 -05:00
class CvemonCve < 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 04:32:08 -05:00
end