aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-05-28 00:32:20 +1200
committerPhilip Arndt <parndt@gmail.com>2011-05-28 00:32:20 +1200
commit3a5d3f56f3446704e1e5c1564011d88e257af97c (patch)
treede2bc17348e870fda6ed24433d9b71cc4a95e9b2 /app
parent2d41081770110bdc8679ed7355a5345ccee60dd1 (diff)
downloadrefinerycms-blog-3a5d3f56f3446704e1e5c1564011d88e257af97c.tar.gz
refinerycms-blog-3a5d3f56f3446704e1e5c1564011d88e257af97c.tar.bz2
refinerycms-blog-3a5d3f56f3446704e1e5c1564011d88e257af97c.zip
Wow, I'm getting good at releasing new versions of this. Fixes size (again).
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_comment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb
index 42059c7..6216cc2 100644
--- a/app/models/blog_comment.rb
+++ b/app/models/blog_comment.rb
@@ -22,8 +22,8 @@ class BlogComment < ActiveRecord::Base
def avatar_url(options = {})
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)}#{options[:size]}.jpg"
+ size = ("?s=#{options[:size]}" if options[:size])
+ "http://gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email.to_s.strip.downcase)}#{size}.jpg"
end
def approve!