Skip to content

Commit

Permalink
🧹 Tobias: Move TrustPolicy to it's own file
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Mar 25, 2024
1 parent b7f902b commit 5ec5a7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions app/furniture/tobias/trust_policy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Tobias
class TrustPolicy < ApplicationPolicy
def show?
true
end
alias_method :entry, :object
end
end
7 changes: 0 additions & 7 deletions app/furniture/tobias/trusts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,4 @@ def show
authorize trust
end
end

class TrustPolicy < ApplicationPolicy
def show?
true
end
alias_method :entry, :object
end
end

0 comments on commit 5ec5a7b

Please sign in to comment.