Skip to content

Commit 59a777b

Browse files
committed
fix: skip polymorphic associations in active_storage check
1 parent 65aa220 commit 59a777b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/forest_liana/resources_getter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def get_one_association(name)
411411

412412
def is_active_storage_association?(association)
413413
return false unless association
414+
return false if SchemaUtils.polymorphic?(association)
414415

415416
klass_name = association.klass.name
416417
klass_name == 'ActiveStorage::Attachment' ||

0 commit comments

Comments
 (0)