Skip to content

Commit

Permalink
fix nested attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 3, 2023
1 parent 3197ff9 commit ca191cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/manifestation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class Manifestation < ApplicationRecord
has_one :lccn_record, dependent: :destroy
has_one :ndl_bib_id_record, dependent: :destroy

accepts_nested_attributes_for :creators, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :contributors, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :publishers, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :creates, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :realizes, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :produces, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :series_statements, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :identifiers, allow_destroy: true, reject_if: :all_blank
accepts_nested_attributes_for :manifestation_custom_values, reject_if: :all_blank
Expand Down

0 comments on commit ca191cc

Please sign in to comment.