Skip to content

Commit

Permalink
fixes a problem with static data
Browse files Browse the repository at this point in the history
It reported the wrong id.
  • Loading branch information
intinig committed Apr 28, 2014
1 parent 399d2af commit 5b897e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lol/static_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def all(endpoint, params={})
model_class(endpoint).new perform_request(api_url(endpoint.dasherize, params)).to_hash
else
perform_request(api_url(endpoint.dasherize, params))["data"].map do |id, values|
model_class(endpoint).new(values.merge(id: id))
model_class(endpoint).new(values.merge(id: values["id"] || id))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/lol/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Lol
VERSION = "0.9.15"
VERSION = "0.9.16"
end

0 comments on commit 5b897e9

Please sign in to comment.