Before adding workers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module IdCard
|
||||
class FieldException < ApplicationRecord
|
||||
belongs_to :configuration
|
||||
belongs_to :setup
|
||||
has_many :field_exception_items, dependent: :destroy
|
||||
accepts_nested_attributes_for :field_exception_items, allow_destroy: true, reject_if: :all_blank
|
||||
|
||||
@@ -13,7 +13,7 @@ module IdCard
|
||||
class << self
|
||||
|
||||
def permitted_params(params)
|
||||
params.require(:id_card_configuration).permit(
|
||||
params.require(:id_card_setup).permit(
|
||||
field_exceptions_attributes: [
|
||||
:exception_type,
|
||||
:exception_value,
|
||||
|
||||
Reference in New Issue
Block a user