From 3bc6d313bebdc1f03e4021aabbc774a0cd97d938 Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Mon, 5 Jan 2015 14:56:12 +0100 Subject: Initialize rails 4 migration --- app/controllers/api/v1/chouette_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api') 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 -- cgit v1.2.3