aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api/v1
diff options
context:
space:
mode:
authorLuc Donnet2015-01-05 14:56:12 +0100
committerLuc Donnet2015-01-05 14:56:12 +0100
commit3bc6d313bebdc1f03e4021aabbc774a0cd97d938 (patch)
treeac5b8c6d8309012136606d9fd9b9a00290f486a8 /app/controllers/api/v1
parente632a4634b1762f4c73d11f1e5b127de9832a1ff (diff)
downloadchouette-core-3bc6d313bebdc1f03e4021aabbc774a0cd97d938.tar.bz2
Initialize rails 4 migration
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r--app/controllers/api/v1/chouette_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/chouette_controller.rb b/app/controllers/api/v1/chouette_controller.rb
index b8879cd3f..c1d626adf 100644
--- a/app/controllers/api/v1/chouette_controller.rb
+++ b/app/controllers/api/v1/chouette_controller.rb
@@ -17,7 +17,7 @@ private
end
end
def switch_referential
- Apartment::Database.switch(@api_key.referential.slug)
+ Apartment::Tenant.switch(@api_key.referential.slug)
end
end