Add references into attr_accessible

This commit is contained in:
Vokhmin Alexey V 2014-06-06 16:53:06 +04:00
parent 3a1b505cf5
commit b06ff1f216
1 changed files with 1 additions and 1 deletions

View File

@ -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'