From 6fef62f9bf661144aeae5a4f77cc595460df43de Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 20 May 2014 22:19:19 +0200 Subject: [PATCH] Moved to rails 4.1. --- app/controllers/packages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/packages_controller.rb b/app/controllers/packages_controller.rb index 2fdf0e87a..e29283ed8 100644 --- a/app/controllers/packages_controller.rb +++ b/app/controllers/packages_controller.rb @@ -6,7 +6,7 @@ class PackagesController < ApplicationController # GET /api/v1/packages def index return if deny_if_not_role('Admin') - packages = Package.all( :order => 'name' ) + packages = Package.all().order('name') render :json => { :packages => packages }