Skip to content

Commit

Permalink
Don't use Rails.application.assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
sepastian committed Mar 17, 2016
1 parent d59b21a commit ec3ff13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/admin/orders/invoice.pdf.prawn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define_grid(columns: 5, rows: 8, gutter: 10)

# HEADER
repeat(:all) do
im = Rails.application.assets.find_asset(Spree::PrintInvoice::Config[:logo_path])
im = asset_path(Spree::PrintInvoice::Config[:logo_path])

if im && File.exist?(im.pathname)
image im.filename, vposition: :top, height: 40, scale: Spree::PrintInvoice::Config[:logo_scale]
Expand Down
3 changes: 2 additions & 1 deletion app/views/spree/admin/orders/packaging_slip.pdf.prawn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ define_grid(columns: 5, rows: 8, gutter: 10)

# HEADER
repeat(:all) do
im = Rails.application.assets.find_asset(Spree::PrintInvoice::Config[:logo_path])
im = asset_path(Spree::PrintInvoice::Config[:logo_path])

if im && File.exist?(im.pathname)
image im, vposition: :top, height: 40, scale: Spree::PrintInvoice::Config[:logo_scale]
end
Expand Down

0 comments on commit ec3ff13

Please sign in to comment.