Permalink
Browse files

removed scope_source_options - not needed for azure api and just gets…

… in the way
  • Loading branch information...
1 parent e50adbe commit b48187ca48a4c591350ba2e6ba78e527249bc391 @KellyMahan KellyMahan committed Aug 21, 2012
Showing with 0 additions and 9 deletions.
  1. +0 −9 lib/rbing.rb
View
9 lib/rbing.rb
@@ -165,12 +165,10 @@ def options_for(type, query, options={})
opts.merge!(build_query(query, options))
source_options = filter_hash(options, [:http] + BASE_OPTIONS + QUERY_KEYWORDS)
- opts.merge!(scope_source_options(type, source_options))
RESERVED_OPTIONS.each do |reserved_option|
next unless options[reserved_option]
opts.merge!("$#{reserved_option}" => options[reserved_option])
opts.delete(reserved_option)
- opts.delete('Web.' + "#{reserved_option}") # Why is this needed? What is causing it to set this?
end
opts.merge!('$format' => 'JSON')
@@ -183,13 +181,6 @@ def options_for(type, query, options={})
http_options.merge(:query => opts)
end
- # returns a Hash containing the data in +options+
- # with the keys prefixed with +type+ and '.'
- #
- def scope_source_options(type, options={})
- options.inject({}) {|h,kv| h["#{type}.#{kv[0]}"] = kv[1]; h }
- end
-
# returns the user's default app id, if one has been
# defined in ~/.rbing_app_id
#

0 comments on commit b48187c

Please sign in to comment.