lib/brief/model.rb in brief-1.17.11 vs lib/brief/model.rb in brief-1.17.12

- old
+ new

@@ -79,9 +79,15 @@ else super end end + def set_data_attribute(attribute, value) + document.data.send("#{attribute}=", value) + document.save + value + end + def exists? document && document.path && document.path.exist? end end