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 <[email protected]>
Co-Authored-By: JuanCarlosTC <[email protected]>
  • Loading branch information
3 people committed Feb 26, 2024
1 parent 3f75e19 commit 3ac7392
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 3ac7392

Please sign in to comment.