X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d25dedaec8ea386c18b7f61c08a3097ba3c4f26c..47eb67e4c084abde49d5463d4ced8b4436a59dfd:/services/api/app/controllers/database_controller.rb diff --git a/services/api/app/controllers/database_controller.rb b/services/api/app/controllers/database_controller.rb index 6699f7363b..dddc3400b4 100644 --- a/services/api/app/controllers/database_controller.rb +++ b/services/api/app/controllers/database_controller.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class DatabaseController < ApplicationController skip_before_filter :find_object_by_uuid skip_before_filter :render_404_if_no_object @@ -51,8 +55,8 @@ class DatabaseController < ApplicationController # create_fixtures() is a no-op for cached fixture sets, so # uncache them all. - ActiveRecord::Fixtures.reset_cache - ActiveRecord::Fixtures. + ActiveRecord::FixtureSet.reset_cache + ActiveRecord::FixtureSet. create_fixtures(Rails.root.join('test', 'fixtures'), fixturesets) # Dump cache of permissions etc. @@ -71,6 +75,10 @@ class DatabaseController < ApplicationController raise end + require 'refresh_permission_view' + + refresh_permission_view + # Done. send_json success: true end