Moves organization verification to Admin from Moderation

This commit is contained in:
kikito
2015-08-17 13:22:38 +02:00
parent ae21209920
commit 3096a73892
9 changed files with 70 additions and 61 deletions

View File

@@ -0,0 +1,19 @@
class Admin::OrganizationsController < Admin::BaseController
load_and_authorize_resource
def index
@organizations = @organizations.includes(:user).order(:name, 'users.email')
end
def verify
@organization.verify
redirect_to action: :index
end
def reject
@organization.reject
redirect_to action: :index
end
end