Moved to rails 4.1.
This commit is contained in:
parent
bc665c97ba
commit
6fef62f9bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue