Class: Fedipub::Server::ActorPolicy
- Inherits:
-
FedipubPolicy
- Object
- FedipubPolicy
- Fedipub::Server::ActorPolicy
- Defined in:
- app/policies/fedipub/server/actor_policy.rb
Defined Under Namespace
Classes: Scope
Instance Attribute Summary
Attributes inherited from FedipubPolicy
Instance Method Summary collapse
Methods inherited from FedipubPolicy
#create?, #destroy?, #edit?, #index?, #initialize, #new?, #update?
Constructor Details
This class inherits a constructor from Fedipub::FedipubPolicy
Instance Method Details
#followers? ⇒ Boolean
12 13 14 |
# File 'app/policies/fedipub/server/actor_policy.rb', line 12 def followers? true end |
#following? ⇒ Boolean
8 9 10 |
# File 'app/policies/fedipub/server/actor_policy.rb', line 8 def following? true end |
#show? ⇒ Boolean
4 5 6 |
# File 'app/policies/fedipub/server/actor_policy.rb', line 4 def show? @record.local? end |