mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-14 03:05:59 -04:00
Brakeman
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user