Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
admin: Use the enabled scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mssola committed Aug 3, 2015
1 parent bf68c0b commit bc8bf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Admin::UsersController < Admin::BaseController
respond_to :html, :js

def index
@users = User.where(enabled: true).page(params[:page])
@users = User.enabled.page(params[:page])
@admin_count = User.admins.count
end

Expand Down

0 comments on commit bc8bf56

Please sign in to comment.