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