lib/receipts/base.rb in receipts-2.1.0 vs lib/receipts/base.rb in receipts-2.2.0

- old
+ new

@@ -5,11 +5,11 @@ class << self attr_reader :title end def initialize(attributes = {}) - super(page_size: "LETTER") + super page_size: attributes.delete(:page_size) || "LETTER" setup_fonts attributes.fetch(:font, Receipts.default_font) @title = attributes.fetch(:title, self.class.title) generate_from(attributes) @@ -17,10 +17,10 @@ def generate_from(attributes) return if attributes.empty? company = attributes.fetch(:company) - header company: company + header company: company, height: attributes.fetch(:logo_height, 16) render_details attributes.fetch(:details) render_billing_details company: company, recipient: attributes.fetch(:recipient) render_line_items attributes.fetch(:line_items) render_footer attributes.fetch(:footer, default_message(company: company)) end