# WickedPDF Global Configuration
#
# Use this to set up shared configuration options for your entire application.
# Any of the configuration options shown here can also be applied to single
# models by passing arguments to the `render :pdf` call.
#
# To learn more, check out the README:
#
# https://github.com/mileszs/wicked_pdf/blob/master/README.md

$EXE_PATH = RbConfig::CONFIG["target_os"] =~ /mswin|mingw|cygwin/i ? 'C:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe' : '/usr/local/bin/wkhtmltopdf'

# if Rails.env.development?
#   WickedPdf.config = {
#     exe_path: $EXE_PATH
#   }
# else
WickedPdf.configure do |c|
  c.exe_path = $EXE_PATH
  c.enable_local_file_access = true
end
# end