Skip to content

Commit

Permalink
Adjusted open congress issue opengovernment#5 fix to work with newer …
Browse files Browse the repository at this point in the history
…versions of ruby than 1.9
  • Loading branch information
mrmax99 committed Aug 14, 2014
1 parent 6e1864e commit 65a1983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gov_kit/open_congress.rb
Expand Up @@ -23,7 +23,7 @@ class OpenCongressObject

def initialize(obj, params)
params.each do |key, value|
key = key.to_sym if RUBY_VERSION[0,3] == "1.9"
key = key.to_sym if RUBY_VERSION[0,3] >= "1.9"
instance_variable_set("@#{key}", value) if obj.instance_methods.include? key
end
end
Expand Down

0 comments on commit 65a1983

Please sign in to comment.