Permalink
Browse files

Use parenthesis around define?, otherwise it will wrap itself around …

…the expression.
  • Loading branch information...
1 parent 1131637 commit 68aa27c7e7e527edc31e3e08599abd4c23b7e887 @postmodern postmodern committed with solnic Oct 7, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/dm-paperclip/storage.rb
@@ -174,13 +174,13 @@ def s3_host_alias
def parse_credentials creds
creds = find_credentials(creds).to_mash.stringify_keys!
- if defined? Merb && Merb.respond_to?(:env)
+ if defined?(Merb) && Merb.respond_to?(:env)
(creds[Merb.env] || creds).symbolize_keys
- elsif defined? RAILS_ENV
+ elsif defined?(RAILS_ENV)
(creds[RAILS_ENV] || creds).symbolize_keys
- elsif defined? Rails && Rails.respond_to(:env)
+ elsif defined?(Rails) && Rails.respond_to(:env)
(creds[Rails.env] || creds).symbolize_keys
- elsif defined? RACK_ENV
+ elsif defined?(RACK_ENV)
(creds[RACK_ENV] || creds).symbolize_keys
else
creds.symbolize_keys

0 comments on commit 68aa27c

Please sign in to comment.