If ZeroClipboard is not in scope when asset-path.js.erb is being run, it will error out with ZeroClipboard is not defined when it tries to set ZeroClipboard.config({ swfPath: '...' }).
This is currently only tested with requirejs-rails, which the first conditional addresses.
If
ZeroClipboard
is not in scope whenasset-path.js.erb
is being run, it will error out withZeroClipboard is not defined
when it tries to setZeroClipboard.config({ swfPath: '...' })
.This is currently only tested with requirejs-rails, which the first conditional addresses.