Skip to content

Instantly share code, notes, and snippets.

@ncri
Created January 21, 2010 13:24
Show Gist options
  • Save ncri/282792 to your computer and use it in GitHub Desktop.
Save ncri/282792 to your computer and use it in GitHub Desktop.
-diff --git a/app/models/pdf_container.rb b/app/models/pdf_container.rb
-index 7187e3f..a871181 100644
---- a/app/models/pdf_container.rb
-+++ b/app/models/pdf_container.rb
-@@ -133,12 +133,16 @@ class PdfContainer < Variant
- pdf.text picture.title
- pdf.text picture.year
- pdf.text picture.technique
-- pdf.text picture.edition
-+ unless picture.edition.blank?
-+ pdf.text "Edition of #{picture.edition}" +
-+ (picture.picture_attrs.find_by_key("artistsproofs") ? ", #{picture.artistsproofs} AP" : "")
-+ end
- if !picture.dimension_height_cm.blank? or
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment