Permalink
Browse files

fix team_logo_uploader to support fog/s3

  • Loading branch information...
1 parent 84b94fb commit 7e27841a6cf9f65f2f5a927f56b67c64e7cc9123 @game7 committed Mar 26, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/uploaders/team_logo_uploader.rb
@@ -103,7 +103,9 @@ def square(n)
def color_palette
- img = Magick::Image::read(@file.file).first
+ cache_stored_file! if !cached?
+
+ img = ::Magick::Image.read(current_path).first
quantized = img.quantize(8, Magick::RGBColorspace)
normal = sort_by_decreasing_frequency(quantized)
map = get_color_map(normal)

0 comments on commit 7e27841

Please sign in to comment.