projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #4921
[arvados.git]
/
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 21c8e4710cb5e62dbe224a6034c68ea1bd40b05e..458766d3e583a8041c8b0fa2b00f402cf559a106 100644
(file)
--- a/
services/api/app/controllers/database_controller.rb
+++ b/
services/api/app/controllers/database_controller.rb
@@
-11,7
+11,7
@@
class DatabaseController < ApplicationController
# we can tell they're not valuable.
user_uuids = User.
where('email is null or email not like ?', '%@example.com').
# we can tell they're not valuable.
user_uuids = User.
where('email is null or email not like ?', '%@example.com').
- collect
&:uuid
+ collect
(&:uuid)
fixture_uuids =
YAML::load_file(File.expand_path('../../../test/fixtures/users.yml',
__FILE__)).
fixture_uuids =
YAML::load_file(File.expand_path('../../../test/fixtures/users.yml',
__FILE__)).
@@
-51,8
+51,8
@@
class DatabaseController < ApplicationController
# create_fixtures() is a no-op for cached fixture sets, so
# uncache them all.
# create_fixtures() is a no-op for cached fixture sets, so
# uncache them all.
- ActiveRecord::Fixture
s
.reset_cache
- ActiveRecord::Fixture
s
.
+ ActiveRecord::Fixture
Set
.reset_cache
+ ActiveRecord::Fixture
Set
.
create_fixtures(Rails.root.join('test', 'fixtures'), fixturesets)
# Dump cache of permissions etc.
create_fixtures(Rails.root.join('test', 'fixtures'), fixturesets)
# Dump cache of permissions etc.