Method: RailsCVE::Entry::References#references=
- Defined in:
- app/models/concerns/rails_cve/entry/references.rb
#references=(refs) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/concerns/rails_cve/entry/references.rb', line 20 def references=(refs) unless Array === refs || String === refs raise ArgumentError, 'invalid type' end _refs = if Array === refs refs.flatten elsif String === refs refs.split REF_DELIMITER end references_will_change! super _refs.map(&:to_s).map(&:strip) end |