Skip to content

Commit

Permalink
Merge remote branch 'andrewkolesnikov/master'
Browse files Browse the repository at this point in the history
Conflicts:
	lib/dm-paperclip/storage.rb
  • Loading branch information
krobertson committed Apr 22, 2010
2 parents c810030 + 4238a28 commit f380a09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/dm-paperclip/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,14 @@ def parse_credentials creds
creds = find_credentials(creds).to_mash.stringify_keys!
if defined? Merb && Merb.respond_to?(:env)
(creds[Merb.env] || creds).symbolize_keys
else
elsif defined? RAILS_ENV
(creds[RAILS_ENV] || creds).symbolize_keys
elsif defined? Rails && Rails.respond_to(:env)
(creds[Rails.env] || creds).symbolize_keys
elsif defined? RACK_ENV
(creds[RACK_ENV] || creds).symbolize_keys
else
creds.symbolize_keys
end
end

Expand Down

0 comments on commit f380a09

Please sign in to comment.