This commit is contained in:
Daniel O'Connor
2022-11-06 17:08:15 +10:30
parent 35b08f88f5
commit da76386bd1

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