Class: Decidim::DirectVerifications::Verification::Admin::AuthorizationsController

Inherits:
Admin::ApplicationController
  • Object
show all
Defined in:
app/controllers/decidim/direct_verifications/verification/admin/authorizations_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



15
16
17
18
19
20
# File 'app/controllers/decidim/direct_verifications/verification/admin/authorizations_controller.rb', line 15

def destroy
  if authorization.destroy
    flash[:notice] = "successfully"
    redirect_to authorizations_path
  end
end

#indexObject



10
11
12
13
# File 'app/controllers/decidim/direct_verifications/verification/admin/authorizations_controller.rb', line 10

def index
  enforce_permission_to :index, :authorization
  @authorizations = collection.includes(:user)
end