Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from kmayer/master
Browse files Browse the repository at this point in the history
Deep clone STACKS constant
  • Loading branch information
Wesley Beary committed Apr 6, 2012
2 parents d2fc752 + 226ab6d commit 1c3ebbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/heroku/api/mock/stacks.rb
Expand Up @@ -34,7 +34,7 @@ module Mock
request_params, mock_data = parse_stub_params(params)
app, _ = request_params[:captures][:path]
with_mock_app(mock_data, app) do |app_data|
stack_data = STACKS.dup
stack_data = Marshal::load(Marshal.dump(STACKS))
stack_data.detect {|stack| stack['name'] == app_data['stack']}['current'] = true
{
:body => Heroku::API::Mock.json_gzip(stack_data),
Expand Down

0 comments on commit 1c3ebbb

Please sign in to comment.