Created
October 10, 2014 23:24
-
-
Save rjswenson/db6dc6dc83571373d374 to your computer and use it in GitHub Desktop.
Failure to lead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pdf.formatted_text_box variation_description(variations.first), | |
width: 1.625.in, | |
align: :center, | |
size: 6, | |
at: [@pdf.bounds.left, @pdf.bounds.top - 2.6.in] | |
def variation_description(variation) | |
[ | |
{ text: "#{variation.code}\n"}, | |
{ text: "#{variation.name.titleize}\n", color: '808080', leading: 100}, | |
{ text: "#{variation.available_on.strftime('%m.%d')}", leading: 100} | |
] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment