From 855cbba0c4a559735b7834e98e4fe49c505f0cef Mon Sep 17 00:00:00 2001 From: aza Date: Mon, 4 Sep 2017 05:52:14 -0300 Subject: [PATCH] dont modify passed options in find. fixes #37 --- lib/open_weather/find.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/open_weather/find.rb b/lib/open_weather/find.rb index 608f23c..e18d415 100644 --- a/lib/open_weather/find.rb +++ b/lib/open_weather/find.rb @@ -5,11 +5,11 @@ def initialize(options = {}) end def self.like(q, options = {}) - new(options.merge!(q: q, type: 'like')).retrieve + new(options.merge(q: q, type: 'like')).retrieve end def self.accurate(q, options = {}) - new(options.merge!(q: q, type: 'accurate')).retrieve + new(options.merge(q: q, type: 'accurate')).retrieve end end -end \ No newline at end of file +end