foodcoop-adam/foodsoft

View on GitHub
app/controllers/admin/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::BaseController < ApplicationController
  before_filter :authenticate_admin
  
  def index
    @user = self.current_user
    @groups = Group.find(:all, :limit => 10, :order => 'groups.created_on DESC', :conditions => {:deleted_at => nil})
    @users = User.find(:all, :limit => 10, :order => 'users.created_on DESC')
  end
  
end