module Admin::TagsHelper

Public Instance Methods

posts_by_tag(posts, status) click to toggle source
# File lib/ecrire/app/helpers/admin/tags_helper.rb, line 3
def posts_by_tag(posts, status)
  str = "#{posts.count} #{status} post"
  if posts.count > 1
    str << 's'
  end

  str
end