Skip to content

Commit

Permalink
Remove dependent match on active storage attachment relation (thought…
Browse files Browse the repository at this point in the history
  • Loading branch information
StefSchenkelaars committed Jul 6, 2020
1 parent f7c5481 commit 92c3df5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/shoulda/matchers/active_record/have_attached_matcher.rb
Expand Up @@ -87,8 +87,7 @@ def attachments_association_matcher
).
conditions(name: name).
class_name('ActiveStorage::Attachment').
inverse_of(:record).
dependent(false)
inverse_of(:record)
end

def attachments_association_name
Expand Down

0 comments on commit 92c3df5

Please sign in to comment.