Sha256: 621f7a8ff30d74b0e0310bc43283c46aef196aeec1d2fef903724a912cd4b795

Contents?: true

Size: 216 Bytes

Versions: 1

Compression:

Stored size: 216 Bytes

Contents

module Bigmouth
  module ArticlesHelper

    def article_author(article)
      if article.author
        article.author[Bigmouth.username_key.to_sym] || "Guest"
      else
        "Guest"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.1 app/helpers/bigmouth/articles_helper.rb