Sha256: e364fdb4a035e19fa2315bfedf5e80d4261a64f4e549cced5023ccf8509bd585
Contents?: true
Size: 287 Bytes
Versions: 1
Compression:
Stored size: 287 Bytes
Contents
module Attorney module DocumentsHelper def published_badge(document) if document.published? content_tag :span, 'Published', class: 'badge badge-success' else content_tag :span, 'Not published', class: 'badge badge-secondary' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attorney-1.0.0 | app/helpers/attorney/documents_helper.rb |