diff --git a/app/models/phase.rb b/app/models/phase.rb index a9814b9..e5cb352 100644 --- a/app/models/phase.rb +++ b/app/models/phase.rb @@ -8,14 +8,14 @@ ## # Associations - belongs_to :template, dependent: :destroy + belongs_to :template has_many :sections, dependent: :destroy has_many :questions, :through => :sections, dependent: :destroy ## # Possibly needed for active_admin # -relies on protected_attributes gem as syntax depricated in rails 4.2 - attr_accessible :description, :number, :title, :dmptemplate_id, :as => [:default, :admin] + attr_accessible :description, :number, :title, :template_id, :as => [:default, :admin] ## # sluggable title