Method: Mist::Post.popularity_for

Defined in:
app/models/mist/post.rb

.popularity_for(post_id) ⇒ Object



44
45
46
# File 'app/models/mist/post.rb', line 44

def popularity_for(post_id)
  self[:popular_posts][post_id] || 0
end