Sha256: ec55e6655f46f2cb2b262988f3b7c5ff21db660235f6e6bbde95ad0ef0434313

Contents?: true

Size: 192 Bytes

Versions: 26

Compression:

Stored size: 192 Bytes

Contents

module Writefully
  module PostsHelper
    def publish_tag post
      partial = post.published_at.present? ? 'published' : 'not_published'
      'writefully/posts/' + partial
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
writefully-0.8.2 app/helpers/writefully/posts_helper.rb
writefully-0.8.1 app/helpers/writefully/posts_helper.rb
writefully-0.8.0 app/helpers/writefully/posts_helper.rb
writefully-0.7.1 app/helpers/writefully/posts_helper.rb
writefully-0.6.12 app/helpers/writefully/posts_helper.rb
writefully-0.6.11 app/helpers/writefully/posts_helper.rb
writefully-0.6.10 app/helpers/writefully/posts_helper.rb
writefully-0.6.9 app/helpers/writefully/posts_helper.rb
writefully-0.6.7 app/helpers/writefully/posts_helper.rb
writefully-0.6.6 app/helpers/writefully/posts_helper.rb
writefully-0.6.5 app/helpers/writefully/posts_helper.rb
writefully-0.6.4 app/helpers/writefully/posts_helper.rb
writefully-0.6.3 app/helpers/writefully/posts_helper.rb
writefully-0.6.2 app/helpers/writefully/posts_helper.rb
writefully-0.5.1 app/helpers/writefully/posts_helper.rb
writefully-0.5.0 app/helpers/writefully/posts_helper.rb
writefully-0.4.10 app/helpers/writefully/posts_helper.rb
writefully-0.4.8 app/helpers/writefully/posts_helper.rb
writefully-0.4.7 app/helpers/writefully/posts_helper.rb
writefully-0.4.6 app/helpers/writefully/posts_helper.rb