Soc/app/helpers/microposts_helper.rb

8 lines
134 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module MicropostsHelper
def tag_string(micropost)
micropost.tags.map(&:name).join(" ")
end
end