Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Asset pipeline fixes #88

Merged
merged 2 commits into from
May 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lib/solidus_paypal_braintree/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def self.activate
end
end

config.assets.precompile += ["spree/backend/solidus_paypal_braintree"]

config.to_prepare(&method(:activate).to_proc)

def self.frontend_available?
Expand All @@ -33,15 +31,16 @@ def self.backend_available?

if frontend_available?
config.assets.precompile += [
'spree/frontend/solidus_paypal_braintree',
'spree/frontend/paypal_button',
'spree/checkout/braintree'
'spree/frontend/solidus_paypal_braintree.js',
'spree/frontend/paypal_button.js',
'spree/checkout/braintree.js'
]
paths["app/controllers"] << "lib/controllers/frontend"
paths["app/views"] << "lib/views/frontend"
end

if backend_available?
config.assets.precompile += ["spree/backend/solidus_paypal_braintree.js"]
paths["app/controllers"] << "lib/controllers/backend"
paths["app/views"] << "lib/views/backend"
end
Expand Down