lib/brief/document.rb in brief-1.17.12 vs lib/brief/document.rb in brief-1.17.13
- old
+ new
@@ -50,9 +50,13 @@
def relative_path
briefcase.present? ? path.relative_path_from(briefcase.docs_path) : path
end
+ def path_alias
+ relative_path.to_s.gsub(relative_path.extname.to_s, '')
+ end
+
def content_hash
Digest::MD5.hexdigest(@content.to_s)
end
def file_hash