aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-07-31 08:31:12 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-07-31 08:31:12 +0300
commit1f1b0f278be73091763b9133db6660b504f63fac (patch)
tree1c629095bbe75c0425f3b2226711a0c9dda53aee /app/models
parent46877fbc5335fc60b96b218cbfd787387bf7d94e (diff)
downloadrefinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.tar.gz
refinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.tar.bz2
refinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.zip
Move avatar_url method to posts helper because view stuff shouldn't be in the model.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/refinery/blog/comment.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/refinery/blog/comment.rb b/app/models/refinery/blog/comment.rb
index b57e16f..afd806f 100644
--- a/app/models/refinery/blog/comment.rb
+++ b/app/models/refinery/blog/comment.rb
@@ -33,13 +33,6 @@ module Refinery
self.per_page = Refinery::Blog.comments_per_page
- def avatar_url(options = {})
- options = {:size => 60}
- require 'digest/md5'
- 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!
self.update_column(:state, 'approved')
end