From 2d41081770110bdc8679ed7355a5345ccee60dd1 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 28 May 2011 00:28:02 +1200 Subject: use options[:size] not size. --- app/models/blog_comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index f461cdb..42059c7 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -23,7 +23,7 @@ class BlogComment < ActiveRecord::Base options = {:size => 60} require 'digest/md5' options[:size] = "?s=#{size}" if options[:size] - "http://gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email.to_s.strip.downcase)}#{size}.jpg" + "http://gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email.to_s.strip.downcase)}#{options[:size]}.jpg" end def approve! -- cgit v1.2.3