diff --git a/app/furniture/tobias/trust_policy.rb b/app/furniture/tobias/trust_policy.rb new file mode 100644 index 000000000..c2f0923de --- /dev/null +++ b/app/furniture/tobias/trust_policy.rb @@ -0,0 +1,8 @@ +class Tobias + class TrustPolicy < ApplicationPolicy + def show? + true + end + alias_method :entry, :object + end +end diff --git a/app/furniture/tobias/trusts_controller.rb b/app/furniture/tobias/trusts_controller.rb index 5b9564720..3b68b99cc 100644 --- a/app/furniture/tobias/trusts_controller.rb +++ b/app/furniture/tobias/trusts_controller.rb @@ -6,11 +6,4 @@ def show authorize trust end end - - class TrustPolicy < ApplicationPolicy - def show? - true - end - alias_method :entry, :object - end end