app/models/archangel/template.rb in archangel-0.0.7 vs app/models/archangel/template.rb in archangel-0.0.8
- old
+ new
@@ -16,9 +16,18 @@
belongs_to :parent, -> { where(partial: false) },
class_name: "Archangel::Template",
optional: true
belongs_to :site
+ ##
+ # Return string of partial status.
+ #
+ # @return [String] partial status
+ #
+ def status
+ partial? ? "partial" : "full"
+ end
+
protected
def valid_liquid_content
return if valid_liquid_content?