Skip to content

Commit

Permalink
Merge pull request #7366 from fjordllc/blank-image
Browse files Browse the repository at this point in the history
articleのブランク画像をpublicの下に移動
  • Loading branch information
machida authored Feb 14, 2024
2 parents 3aefb1a + ab3cf90 commit 03e5c1e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file removed app/assets/images/articles/thumbnails/default.png
Binary file not shown.
2 changes: 1 addition & 1 deletion app/models/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def prepared_thumbnail_url
if thumbnail.attached?
thumbnail.variant(resize: THUMBNAIL_SIZE).processed.url
else
image_url('/assets/articles/thumbnails/blank.svg')
image_url('/images/articles/thumbnails/blank.svg')
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/models/article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class ArticleTest < ActiveSupport::TestCase
test '#prepared_thumbnail_url' do
article = articles(:article3)
assert_equal '/assets/articles/thumbnails/blank.svg', article.prepared_thumbnail_url
assert_equal '/images/articles/thumbnails/blank.svg', article.prepared_thumbnail_url
end

test '#selected_thumbnail_url' do
Expand Down

0 comments on commit 03e5c1e

Please sign in to comment.