foodsoft/app/controllers/admin_controller.rb

13 lines
420 B
Ruby
Raw Normal View History

2009-01-06 11:49:19 +01:00
class AdminController < ApplicationController
before_filter :authenticate_admin
filter_parameter_logging :password, :password_confirmation # do not log passwort parameters
def index
@user = self.current_user
@groups = Group.find(:all, :limit => 10, :order => 'created_on DESC', :conditions => {:deleted_at => nil})
@users = User.find(:all, :limit => 10, :order => 'created_on DESC')
2009-01-06 11:49:19 +01:00
end
end