foodsoft/app/controllers/admin/base_controller.rb
wvengen 7841245795 migrate to Rails 4.0 (closes foodcoops#214)
Conflicts:
	Gemfile.lock
2014-02-24 12:46:28 +01:00

10 lines
277 B
Ruby

class Admin::BaseController < ApplicationController
before_filter :authenticate_admin
def index
@user = self.current_user
@groups = Group.where(deleted_at: nil).order('created_on DESC').limit(10)
@users = User.order('created_on DESC').limit(10)
end
end