aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2014-09-30 13:56:43 +0200
committerLuc Donnet2014-09-30 13:56:43 +0200
commit943592b64acaa4a0432f0d4c1fa233791495b404 (patch)
tree5c34a4ba12e8af587bf3db06d693695c0130dc2b /app/controllers/referentials_controller.rb
parent4a35fb0a504b664dbf7853020cba936a91e4227a (diff)
parent9ed5022fad7c1dba366b8a282413b10fb24b4812 (diff)
downloadchouette-core-943592b64acaa4a0432f0d4c1fa233791495b404.tar.bz2
Merge branch 'sismo' of github.com:afimb/chouette2 into sismo
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index bf8a2f1ef..9cf4a5f62 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -26,7 +26,7 @@ class ReferentialsController < BreadcrumbController
@referential ||= current_organisation.referentials.find_by_id(params[:id])
end
def collection
- @referentials ||= current_organisation.referentials
+ @referentials ||= current_organisation.referentials.order(:name)
end
def build_resource
super.tap do |referential|