Method: Effective::Resources::Associations#active_storage_has_manys

Defined in:
app/models/effective/resources/associations.rb

#active_storage_has_manysObject



57
58
59
60
# File 'app/models/effective/resources/associations.rb', line 57

def active_storage_has_manys
  return [] unless klass.respond_to?(:reflect_on_all_associations)
  klass.reflect_on_all_associations(:has_many).select { |ass| ass.class_name == 'ActiveStorage::Attachment' }
end