Browse files

get get_uri perform escaping

  • Loading branch information...
1 parent 2721384 commit baa96708d840d7e0e0ed5dc2fbd49b7c18f1a4d6 @jpmckinney jpmckinney committed Nov 7, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/gov_kit/open_states.rb
View
5 lib/gov_kit/open_states.rb
@@ -60,10 +60,7 @@ def self.find_by_abbreviation(abbreviation)
class Bill < OpenStatesResource
# http://openstates.sunlightlabs.com/api/v1/bills/ca/20092010/AB 667/
def self.find(state_abbrev, session, bill_id, chamber = '')
- escaped_bill_id = bill_id.gsub(/ /, '%20')
- escaped_session = session.gsub(/ /, '%20')
-
- get_uri("/bills/#{state_abbrev.downcase}/#{escaped_session}/#{chamber.blank? ? '' : chamber + '/'}#{escaped_bill_id}/")
+ get_uri("/bills/#{state_abbrev.downcase}/#{session}/#{chamber.blank? ? '' : chamber + '/'}#{bill_id}/")
end
def self.search(query, options = {})

0 comments on commit baa9670

Please sign in to comment.