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

Commit cdedab6

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: install.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
require File.join(Rails.root, File.dirname(__FILE__), 'lib/plupload-rails3/asset_mover')
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
5+
require File.join(Rails.root, File.dirname(__FILE__), 'lib/plupload-rails3/asset_mover')
6+
end
27
install_plupload_assets

0 commit comments

Comments
 (0)