Something not right here with Kate.

This commit is contained in:
2023-06-21 11:07:34 +01:00
parent 1eb8c2753f
commit d882c1a521
6 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
class CredentialsController < ApplicationController
before_action :set_credential, only: %i[ show edit update destroy ]
before_action :set_domain, only: %i[ new ]
# GET /credentials or /credentials.json
def index
@@ -63,6 +64,10 @@ class CredentialsController < ApplicationController
@credential = Credential.find(params[:id])
end
def set_domain
@domain = Domain.find(params[:domain_id])
end
# Only allow a list of trusted parameters through.
def credential_params
params.require(:credential).permit(:email, :password)