Commit 093f2193 by Tim Pope Committed by Jon Yurek

Syntax fix for 1.9

parent 10c79b22
...@@ -206,11 +206,11 @@ module Paperclip ...@@ -206,11 +206,11 @@ module Paperclip
def find_credentials creds def find_credentials creds
case creds case creds
when File: when File
YAML.load_file(creds.path) YAML.load_file(creds.path)
when String: when String
YAML.load_file(creds) YAML.load_file(creds)
when Hash: when Hash
creds creds
else else
raise ArgumentError, "Credentials are not a path, file, or hash." raise ArgumentError, "Credentials are not a path, file, or hash."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment