Skip to content

Commit 1282801

Browse files
committed
Revert "continue to save exercise even if attachment is not valid"
This reverts commit cf93c9c. continue to test validity
1 parent 0d2fc60 commit 1282801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/has_attachments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module ActiveRecord
33
module Base
44
def has_attachments
55
class_exec do
6-
has_many :attachments, as: :parent, dependent: :destroy, inverse_of: :parent, validate: false
6+
has_many :attachments, as: :parent, dependent: :destroy, inverse_of: :parent
77
end
88
end
99
end

0 commit comments

Comments
 (0)