app/models/archangel/page.rb in archangel-0.0.6 vs app/models/archangel/page.rb in archangel-0.0.7

- old
+ new

@@ -51,9 +51,26 @@ def published? published_at.present? end ## + # Return string of publication status. + # + # @return [String] publication status + # + def published_status + if published? + if published_at > Time.now + "future-published" + else + "published" + end + else + "unpublished" + end + end + + ## # Liquid object for Page # # @return [Object] the Liquid object # def to_liquid