Module: Pageflow::Admin::RevisionsHelper

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

Instance Method Summary collapse

Instance Method Details

#revision_css_class(revision) ⇒ Object


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