From 3bfafe09db3cc24336d7850ea64cc07bbe9f1d34 Mon Sep 17 00:00:00 2001 From: chloeinnvaer <134097748+chloeinnvaer@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:59:45 -0800 Subject: [PATCH] Flushed out the plumbing for showing a trust Next steps might include: create "New Payout" link Co-Authored-By: Zee <50284+zspencer@users.noreply.github.com> Co-Authored-By: JuanCarlosTC <153764163+juancarlostc@users.noreply.github.com> --- app/furniture/tobias/trusts/show.html.erb | 1 + app/furniture/tobias/trusts_controller.rb | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/app/furniture/tobias/trusts/show.html.erb b/app/furniture/tobias/trusts/show.html.erb index e69de29bb..667e845bd 100644 --- a/app/furniture/tobias/trusts/show.html.erb +++ b/app/furniture/tobias/trusts/show.html.erb @@ -0,0 +1 @@ + diff --git a/app/furniture/tobias/trusts_controller.rb b/app/furniture/tobias/trusts_controller.rb index 1125f8be1..d8af06b29 100644 --- a/app/furniture/tobias/trusts_controller.rb +++ b/app/furniture/tobias/trusts_controller.rb @@ -1,8 +1,16 @@ class Tobias class TrustsController < FurnitureController + expose :trust, model: Trust def show + authorize trust end end + class TrustPolicy < ApplicationPolicy + def show? + true + end + alias_method :entry, :object + end end