Skip to content

Commit

Permalink
articleのブランク画像をpublicの下に異動
Browse files Browse the repository at this point in the history
  • Loading branch information
machida committed Feb 14, 2024
1 parent 3aefb1a commit 29b8ca5
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('/imgaes/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 29b8ca5

Please sign in to comment.