Update and connect to drone (#1)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #1
This commit is contained in:
parent
0887a5f6b9
commit
fd75a7c6ff
17 changed files with 215 additions and 170 deletions
|
@ -1,5 +1,5 @@
|
|||
class CreditCardBillsController < ApplicationController
|
||||
before_action :set_credit_card_bill, only: %i[ show edit update destroy ]
|
||||
before_action :set_credit_card_bill, only: %i[show edit update destroy]
|
||||
|
||||
# GET /credit_card_bills or /credit_card_bills.json
|
||||
def index
|
||||
|
@ -58,13 +58,14 @@ class CreditCardBillsController < ApplicationController
|
|||
end
|
||||
|
||||
private
|
||||
# Use callbacks to share common setup or constraints between actions.
|
||||
def set_credit_card_bill
|
||||
@credit_card_bill = CreditCardBill.find(params[:id])
|
||||
end
|
||||
|
||||
# Only allow a list of trusted parameters through.
|
||||
def credit_card_bill_params
|
||||
params.require(:credit_card_bill).permit(:description, :amount)
|
||||
end
|
||||
# Use callbacks to share common setup or constraints between actions.
|
||||
def set_credit_card_bill
|
||||
@credit_card_bill = CreditCardBill.find(params[:id])
|
||||
end
|
||||
|
||||
# Only allow a list of trusted parameters through.
|
||||
def credit_card_bill_params
|
||||
params.require(:credit_card_bill).permit(:description, :amount)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue