Permalink
Browse files

Allow special request params to be sent to the finder

  • Loading branch information...
1 parent 5483fb7 commit ebaa3f6b46514078b8addce1e73518ec8a88c8c0 @benaskins committed Mar 28, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/weatherzone.rb
  2. +1 −0 lib/weatherzone/finder.rb
View
@@ -21,5 +21,5 @@
require 'weatherzone/helpers/units'
module Weatherzone
- VERSION = '0.8.7'
+ VERSION = '0.8.8'
end
@@ -108,6 +108,7 @@ def find_by_radar_code(connection, radar_code, options={})
def build_params(location_code, options)
params = location_code ? "&lc=#{location_code}" : ""
params += options.delete(:params) if options[:params]
+ params += options.delete(:sr_params) if options[:sr_params]
params += include_params(options.delete(:include)) if options[:include]
params += include_image(options.delete(:image)) if options[:image]
params += parse_params(options) unless options.empty?

0 comments on commit ebaa3f6

Please sign in to comment.