Before adding workers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module IdCard
|
||||
class Plan < ApplicationRecord
|
||||
belongs_to :configuration, optional: true
|
||||
belongs_to :setup, optional: true
|
||||
has_many :plan_benefits, dependent: :destroy
|
||||
accepts_nested_attributes_for :plan_benefits, allow_destroy: true, reject_if: :all_blank
|
||||
|
||||
@@ -45,7 +45,7 @@ module IdCard
|
||||
# end
|
||||
|
||||
def permitted_params(params)
|
||||
params.require(:id_card_configuration).permit(
|
||||
params.require(:id_card_setup).permit(
|
||||
plans_attributes: [
|
||||
:id,
|
||||
:title,
|
||||
|
||||
Reference in New Issue
Block a user