lib/kraken-io.rb in kraken-io-0.1.1 vs lib/kraken-io.rb in kraken-io-0.1.2
- old
+ new
@@ -73,11 +73,11 @@
end
def normalized_params(params)
params = params.with_indifferent_access
- if params.keys.include?(:callback_url) || @callback_url
- params[:callback_url] = @callback_url
+ if params.key?(:callback_url) || @callback_url
+ params[:callback_url] = params['callback_url'] || @callback_url
else
params[:wait] = true
end
params