beta build
This commit is contained in:
@@ -3,6 +3,7 @@ module IdCard
|
||||
belongs_to :setup, optional: true
|
||||
has_many :plan_benefits, dependent: :destroy
|
||||
accepts_nested_attributes_for :plan_benefits, allow_destroy: true, reject_if: :all_blank
|
||||
has_many :members, class_name: 'Member', foreign_key: :id_card_plan_id
|
||||
|
||||
validates :title, presence: true
|
||||
validates :pb_product_key, :pl_plan_key, presence: true, if: -> { setup&.active }
|
||||
|
||||
Reference in New Issue
Block a user