Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

Commit af879b4

Browse files
committed
change require path for install and uninstall script to hopefully fix it
1 parent cdedab6 commit af879b4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install.rb

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
begin
2-
require File.join(File.dirname(__FILE__), 'lib/plupload-rails3/asset_mover')
3-
rescue
4-
#to install locally, I have to use rails runner instead of rails plugin install, and it gives a messed up path
1+
asset_mover_file = File.join(File.dirname(__FILE__), 'lib/plupload-rails3/asset_mover')
2+
3+
if File.exists?(asset_mover_file)
4+
require asset_mover_file
5+
else #to install locally, I have to use rails runner instead of rails plugin install, and it gives a messed up path
56
require File.join(Rails.root, File.dirname(__FILE__), 'lib/plupload-rails3/asset_mover')
67
end
8+
79
install_plupload_assets

0 commit comments

Comments
 (0)