Commit 48cad66f by Dave Gynn

replace strings with symbols

parent 07b8b9ec
......@@ -15,7 +15,7 @@ module Paperclip
private
def rails_exists?
Object.const_defined?("Rails")
Object.const_defined?(:Rails)
end
def rails_environment_exists?
......
......@@ -286,7 +286,7 @@ module Paperclip
end
def parse_credentials creds
creds = creds.respond_to?('call') ? creds.call(self) : creds
creds = creds.respond_to?(:call) ? creds.call(self) : creds
creds = find_credentials(creds).stringify_keys
(creds[RailsEnvironment.get] || creds).symbolize_keys
end
......
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