Module: Pageflow::Admin::RevisionsHelper

Defined in:
app/helpers/pageflow/admin/revisions_helper.rb

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#revision_css_class(revision) ⇒ Object

Since:

  • 12.2



4
5
6
7
8
# File 'app/helpers/pageflow/admin/revisions_helper.rb', line 4

def revision_css_class(revision)
  css_classes = []
  css_classes << 'published' if revision.published?
  css_classes.join(' ')
end