Skip to content

Commit

Permalink
This case/when syntax is no longer supported in Ruby 1.9.2. Changed i…
Browse files Browse the repository at this point in the history
…t so it should work with any Ruby.
  • Loading branch information
Brent Theisen committed May 28, 2011
1 parent 2c4283e commit 226d386
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/yelp/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def to_yelp_params
# if they specified anything other than a json variant, we
# need to tell yelp what we're looking for
case @response_format
when Yelp::ResponseFormat::PICKLE: params[:output] = 'pickle'
when Yelp::ResponseFormat::PHP: params[:output] = 'php'
when Yelp::ResponseFormat::PICKLE
params[:output] = 'pickle'
when Yelp::ResponseFormat::PHP
params[:output] = 'php'
end

params
Expand Down

0 comments on commit 226d386

Please sign in to comment.