Fix attachment to has_many_attached

This commit is contained in:
Deepak Mahakale 2022-08-03 15:09:49 +05:30
parent 6d8df0af70
commit 380cd17ae4
2 changed files with 2 additions and 2 deletions

View File

@ -879,7 +879,7 @@ class ActiveStorage::ManyAttachedTest < ActiveSupport::TestCase
Rails.configuration.active_storage.stub(:service, nil) do
error = assert_raises RuntimeError do
User.class_eval do
has_one_attached :featured_photos
has_many_attached :featured_photos
end
end

View File

@ -688,7 +688,7 @@ class ActiveStorage::OneAttachedTest < ActiveSupport::TestCase
Rails.configuration.active_storage.stub(:service, nil) do
error = assert_raises RuntimeError do
User.class_eval do
has_one_attached :featured_photos
has_one_attached :featured_photo
end
end