7 lines
149 B
Ruby
7 lines
149 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CvemonCve < ActiveRecord::Base
|
|
def self.from_year(year)
|
|
where('cve_id LIKE ?', "CVE-#{year}-%")
|
|
end
|
|
end
|