From da76386bd1bb62e77dee01c3347c5dc24a784cf1 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 6 Nov 2022 17:08:15 +1030 Subject: [PATCH] Brakeman --- app/models/photo_association.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/photo_association.rb b/app/models/photo_association.rb index 81477d78f..0ede1d161 100644 --- a/app/models/photo_association.rb +++ b/app/models/photo_association.rb @@ -8,6 +8,8 @@ class PhotoAssociation < ApplicationRecord validate :photo_and_item_have_same_owner validate :crop_present + attr_accessible :photo_id, :photographable_id, :photographable_type, :crop_id + ## ## Triggers before_validation :set_crop