Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prawn_options preference not defined (NoMethodError) #74

Open
tvdeyen opened this issue Mar 18, 2015 · 1 comment
Open

prawn_options preference not defined (NoMethodError) #74

tvdeyen opened this issue Mar 18, 2015 · 1 comment

Comments

@tvdeyen
Copy link
Contributor

tvdeyen commented Mar 18, 2015

Following the readme of the current 3-0-stable branch I get an

preferable.rb:62:in `has_preference!': prawn_options preference not defined (NoMethodError)

error.

This is how my config looks like:

# config/initializers/spree.rb
Spree::PrintInvoice::Config.set(
  prawn_options: {
    page_layout: :portrait,
    page_size: 'A4'
  }
)

Maybe the readme is outdated?

@rkusa
Copy link

rkusa commented Jul 1, 2015

Stumbled upon the same issue. The Readme seems to be outdated. The following works

Spree::PrintInvoice::Config.set(
    page_layout: :portrait,
    page_size: 'A4'
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants