Ruby 1.9 fix

Make the previous fixes work under Ruby 1.9
as well.
This commit is contained in:
Jacques Distler 2010-01-23 18:30:17 -06:00
parent 09e885d299
commit b9db67073d

View file

@ -459,7 +459,7 @@ EOL
end
dir = Rails.root.join('public')
Dir["#{dir}/**/*"].each do |f|
zip_out.add "public#{f.sub(dir,'')}", f
zip_out.add "public#{f.sub(dir.to_s,'')}", f
end
end
files = @web.files_path