aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorRobert2017-09-14 08:39:37 +0200
committerRobert2017-09-14 08:39:37 +0200
commit2f52ae9e95a61878eb9baecdeddbb8ab4f55c04d (patch)
treecfa73049ddb444c631ff3198fdc9033fa87dfd0d /app/controllers
parent5d49813f7bc7b343141870fe291cea0100dad75e (diff)
parente11810f865239f5565c1b97c7e8da5f2b3108d29 (diff)
downloadchouette-core-2f52ae9e95a61878eb9baecdeddbb8ab4f55c04d.tar.bz2
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api_keys_controller.rb22
-rw-r--r--app/controllers/referential_lines_controller.rb2
2 files changed, 16 insertions, 8 deletions
diff --git a/app/controllers/api_keys_controller.rb b/app/controllers/api_keys_controller.rb
index 7059cf52e..03e5ef237 100644
--- a/app/controllers/api_keys_controller.rb
+++ b/app/controllers/api_keys_controller.rb
@@ -3,19 +3,27 @@ class ApiKeysController < BreadcrumbController
def create
@api_key = Api::V1::ApiKey.new(api_key_params.merge(organisation: current_organisation))
- create! { organisation_api_keys_path }
- end
-
- def index
- @api_keys = decorate_api_keys(current_organisation.api_keys.paginate(page: params[:page]))
+ create! do |format|
+ format.html {
+ redirect_to workbenches_path
+ }
+ end
end
def update
- update! { organisation_api_key_path(resource) }
+ update! do |format|
+ format.html {
+ redirect_to workbenches_path
+ }
+ end
end
def destroy
- destroy! { organisation_api_keys_path }
+ destroy! do |format|
+ format.html {
+ redirect_to workbenches_path
+ }
+ end
end
private
diff --git a/app/controllers/referential_lines_controller.rb b/app/controllers/referential_lines_controller.rb
index 1da64991d..ec0bbbb18 100644
--- a/app/controllers/referential_lines_controller.rb
+++ b/app/controllers/referential_lines_controller.rb
@@ -11,7 +11,7 @@ class ReferentialLinesController < ChouetteController
belongs_to :referential
def show
- @routes = resource.routes
+ @routes = resource.routes.order(:objectid)
case sort_route_column
when "stop_points", "journey_patterns"