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