Permalink
Browse files

Allow :s3_credentials to be a Pathname object.

  • Loading branch information...
1 parent 3bb26b2 commit 1131637ac36ea7d49062394ce49225ff9ea4f882 @postmodern postmodern committed with solnic Oct 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dm-paperclip/storage.rb
@@ -242,7 +242,7 @@ def find_credentials creds
case creds
when File
YAML::load(ERB.new(File.read(creds.path)).result)
- when String
+ when Pathname, String
YAML::load(ERB.new(File.read(creds)).result)
when Hash
creds
@@ -254,4 +254,4 @@ def find_credentials creds
end
end
-end
+end

0 comments on commit 1131637

Please sign in to comment.