Skip to content

Commit

Permalink
Fixed order of allowed formats to be sorted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Jul 19, 2009
1 parent ae3cd0f commit a236fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httparty.rb
Expand Up @@ -105,7 +105,7 @@ def cookies(h={})
# format :json
# end
def format(f)
raise UnsupportedFormat, "Must be one of: #{AllowedFormats.values.map(&:to_s).uniq.sort.join(', ')}" unless AllowedFormats.value?(f)
raise UnsupportedFormat, "Must be one of: #{AllowedFormats.values.map { |v| v.to_s }.uniq.sort.join(', ')}" unless AllowedFormats.value?(f)
default_options[:format] = f
end

Expand Down

0 comments on commit a236fb0

Please sign in to comment.