This commit is contained in:
Daniel O'Connor committed 2022-11-06 17:08:15 +10:30
1 parent 35b08f88f5
commit da76386bd1
1 file changed
+2
+2
View File
@@ -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