Commit 48cad66f by Dave Gynn

replace strings with symbols

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