lib/casino_hub.rb in casino_hub-0.1.4 vs lib/casino_hub.rb in casino_hub-0.1.5
- old
+ new
@@ -49,10 +49,10 @@
headers = {
'Access-Token' => params.fetch(:company_token, company_token)
}
params.delete(:company_token)
- params.merge!(source: @source.parameterize.underscore)
+ params.merge!(source: source.parameterize.underscore)
case method.to_s.downcase.to_sym
when :get, :head, :delete
# Make params into GET parameters
url += "#{URI.parse(url).query ? '&' : '?'}#{Util.encode_parameters(params)}" if params && params.any?