1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 16:19:40 +02:00
Maybe/app/controllers/rules_controller.rb
2025-04-02 08:10:35 -04:00

36 lines
496 B
Ruby

class RulesController < ApplicationController
before_action :set_rule, only: [ :show, :edit, :update, :destroy ]
def index
@rules = Current.family.rules
render layout: "settings"
end
def show
end
def new
end
def create
end
def edit
end
def update
end
def destroy
end
private
def set_rule
@rule = Current.family.rules.find(params[:id])
end
def rule_params
params.require(:rule).permit(:effective_date, :active)
end
end