aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api
diff options
context:
space:
mode:
authorMarc Florisson2012-12-07 18:42:03 +0100
committerMarc Florisson2012-12-07 18:42:03 +0100
commitca0118ec7947777a382840027f9a001803510382 (patch)
tree30f1234dec6b2d74d900c4e221c9e9c913d09010 /app/controllers/api
parent0b24329d0fc53a226e801f7626d690a59be3d29d (diff)
downloadchouette-core-ca0118ec7947777a382840027f9a001803510382.tar.bz2
refactor api/V1 spec
Diffstat (limited to 'app/controllers/api')
-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 f307e6755..1264e3484 100644
--- a/app/controllers/api/v1/chouette_controller.rb
+++ b/app/controllers/api/v1/chouette_controller.rb
@@ -16,7 +16,7 @@ private
end
end
def switch_referential
- Apartment::Database.switch(@api_key.referential_slug)
+ Apartment::Database.switch(referential.slug)
end
end