aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-05-28 00:28:02 +1200
committerPhilip Arndt <parndt@gmail.com>2011-05-28 00:28:31 +1200
commit2d41081770110bdc8679ed7355a5345ccee60dd1 (patch)
treef2a212d117f3da7f776636300e4d2d7b18adb930 /app
parent6287603a2bc9a2095fece3e3cfc29c620bd0960b (diff)
downloadrefinerycms-blog-2d41081770110bdc8679ed7355a5345ccee60dd1.tar.gz
refinerycms-blog-2d41081770110bdc8679ed7355a5345ccee60dd1.tar.bz2
refinerycms-blog-2d41081770110bdc8679ed7355a5345ccee60dd1.zip
use options[:size] not size.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_comment.rb2
1 files changed, 1 insertions, 1 deletions
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!