Commit 8a72dcba6eac1ab043a8030dba3afd454fb124de
Committed by
Antonio Terceiro
1 parent
d8b59c1a
Exists in
master
and in
29 other branches
ActionItem1057: resizing file only if it is bigger
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/uploaded_file.rb
@@ -10,7 +10,7 @@ class UploadedFile < Article | @@ -10,7 +10,7 @@ class UploadedFile < Article | ||
10 | # :min_size => 2.megabytes | 10 | # :min_size => 2.megabytes |
11 | # :max_size => 5.megabytes | 11 | # :max_size => 5.megabytes |
12 | has_attachment :storage => :file_system, | 12 | has_attachment :storage => :file_system, |
13 | - :thumbnails => { :icon => [24,24], :thumb => '130x130>', :display => [640,480] }, | 13 | + :thumbnails => { :icon => [24,24], :thumb => '130x130>', :display => '640X480>' }, |
14 | :thumbnail_class => Thumbnail, | 14 | :thumbnail_class => Thumbnail, |
15 | :max_size => 5.megabytes | 15 | :max_size => 5.megabytes |
16 | 16 |