Add references into attr_accessible
This commit is contained in:
parent
3a1b505cf5
commit
b06ff1f216
|
@ -11,7 +11,7 @@ class Advisory < ActiveRecord::Base
|
||||||
after_create :generate_advisory_id
|
after_create :generate_advisory_id
|
||||||
before_save :normalize_references, if: :references_changed?
|
before_save :normalize_references, if: :references_changed?
|
||||||
|
|
||||||
attr_accessible :description
|
attr_accessible :description, :references
|
||||||
|
|
||||||
ID_TEMPLATE = 'ROSA-%<type>s-%<year>d:%<id>04d'
|
ID_TEMPLATE = 'ROSA-%<type>s-%<year>d:%<id>04d'
|
||||||
ID_STRING_TEMPLATE = 'ROSA-%<type>s-%<year>04s:%<id>04s'
|
ID_STRING_TEMPLATE = 'ROSA-%<type>s-%<year>04s:%<id>04s'
|
||||||
|
|
Loading…
Reference in New Issue