mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 10:10:12 +01:00
fix all upgrade warnings from the rails_upgrade plugin
This commit is contained in:
parent
fd4fb6df9e
commit
fd433d76d8
47 changed files with 288 additions and 2284 deletions
|
|
@ -18,7 +18,7 @@ class UsersController < ApplicationController
|
|||
store_location
|
||||
end
|
||||
format.xml do
|
||||
@users = User.find(:all, :order => 'login')
|
||||
@users = User.order('login').all
|
||||
render :xml => @users.to_xml(:except => [ :password ])
|
||||
end
|
||||
end
|
||||
|
|
@ -139,7 +139,7 @@ class UsersController < ApplicationController
|
|||
def destroy
|
||||
@deleted_user = User.find_by_id(params[:id])
|
||||
@saved = @deleted_user.destroy
|
||||
@total_users = User.find(:all).size
|
||||
@total_users = User.all.size
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue