FIX: Missing letter avatars

cc @zogstrip

It seems that the version string was ammended to return the ImageMagick
version. This caused the guard in the user avatars method to fail as the
versions weren't the same.

I changed it so it is comparing the right version, but I wonder if this
is bad as the controller is no longer using the ImageMagick version. Can
you please review?
This commit is contained in:
Robin Ward 2015-04-19 10:48:53 -04:00
parent d16df04c76
commit 03943554c6
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class UserAvatarsController < ApplicationController
params.require(:version)
params.require(:size)
return render_dot if params[:version] != LetterAvatar.version
return render_dot if params[:version].to_i != LetterAvatar::VERSION
image = LetterAvatar.generate(params[:username].to_s, params[:size].to_i)