Browse files

Unconditionally encrypting

  • Loading branch information...
1 parent ef27fd3 commit df86ae9733dd29458f6e1960137b24ddff61f690 @alg alg committed Sep 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip_processors/encrypt.rb
View
2 lib/paperclip_processors/encrypt.rb
@@ -19,7 +19,7 @@ def make
begin
run("rm", "-f \"#{File.expand_path(dst.path)}\"")
- run("gpg", "-o \"#{File.expand_path(dst.path)}\" -e -r \"#{@recipient}\" \"#{File.expand_path(src.path)}\"")
+ run("gpg", "--trust-model always -o \"#{File.expand_path(dst.path)}\" -e -r \"#{@recipient}\" \"#{File.expand_path(src.path)}\"")
rescue PaperclipCommandLineError
raise PaperclipError, "couldn't be encrypted. Please try again later."
end

0 comments on commit df86ae9

Please sign in to comment.