Moved to rails 4.1.

This commit is contained in:
Martin Edenhofer 2014-05-20 22:19:19 +02:00
parent bc665c97ba
commit 6fef62f9bf

View file

@ -6,7 +6,7 @@ class PackagesController < ApplicationController
# GET /api/v1/packages # GET /api/v1/packages
def index def index
return if deny_if_not_role('Admin') return if deny_if_not_role('Admin')
packages = Package.all( :order => 'name' ) packages = Package.all().order('name')
render :json => { render :json => {
:packages => packages :packages => packages
} }