Skip to content

Commit

Permalink
Flushed out the plumbing for showing a trust
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people committed Mar 25, 2024
1 parent 9551e6c commit 3bfafe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/furniture/tobias/trusts/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src= "http://placekitten.com/200/300">
8 changes: 8 additions & 0 deletions app/furniture/tobias/trusts_controller.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3bfafe0

Please sign in to comment.